ShmoopTube
Where Monty Python meets your 10th grade teacher.
Search Thousands of Shmoop Videos
AP Computer Science Videos 110 videos
AP Computer Science: Classes and Objects Drill 1, Problem 1. Which of the following is a correct {/* Implementation */} for the isInsect method?
AP Computer Science 1.1 Inheritance, Abstraction, and Polymorphism. Which of the following are correct?
AP Computer Science 1.1 Program Development. The situation in the video is an example of which of the following?
AP Computer Science 1.3 Inheritance, Abstraction, and Polymorphism 177 Views
Share It!
Description:
AP Computer Science 1.3 Inheritance, Abstraction, and Polymorphism. Which of the following is true?
Transcript
- 00:00
Thank you We sneak and here's your shmoop du jour
- 00:05
brought to you by the great who got stepped on
- 00:09
It didn't say anything but it let out a little
- 00:11
wine Consider the following class hierarchy diagram note and open
- 00:17
up arrow denotes an inheritance relationship and it closed down
Full Transcript
- 00:22
arrow This thing denotes a composition relationship I got fruit
- 00:27
very citrusy but we did Following is true all right
- 00:31
roman numerals And let's go we're looking at statement one
- 00:38
let's recall What is a relationship it's and is a
- 00:43
relationship states that one class is a subclass or super
- 00:47
class of the other Well his fruit a subclass are
- 00:51
super class of grape Yeah well statement to suggest that
- 00:55
seed in fruit have a has a relationship Remember that
- 01:00
has a relationship Means that one glass contains a variable
- 01:04
that is an instance of the other well does fruits
- 01:07
contain a variable of seed type No no we can
- 01:11
tell from the diagram that not all fruits have seeds
- 01:16
And lastly statement three says that citrus and seed hava
- 01:20
has a relationship Well does the citrus class contain a
- 01:24
seed We'll definitely way intel from the up arrow in
- 01:27
the diagram and our answers The next time we'll check
- 01:30
out the very angry grapes the grapes of wrath We 00:01:35.566 --> [endTime] went there Sorry people Oh
Related Videos
AP Computer Science 1.2 GridWorld Case Study and APIs. What is the direction of the actor?
AP Computer Science 1.4 Standard Algorithms. How many times will mystery be called for mystery(n) for n > 1?
AP Computer Science 2.3 Classes and Objects. Which of the following is correct implementation of the Country class?
AP Computer Science 3.4 Inheritance, Abstraction, and Polymorphism. Which of the following will satisfy the conditional if statement for boo, str,...
AP Computer Science 4.2 Standard Algorithms. What kind of algorithm is the following?