ShmoopTube

Where Monty Python meets your 10th grade teacher.

Search Thousands of Shmoop Videos


Inheritance, Abstraction, and Polymorphism Videos 17 videos

AP Computer Science 1.2 Inheritance, Abstraction, and Polymorphism
369 Views

APCS: Inheritance, Abstraction, and Polymorphism Drill 1, Problem 2. Which of the following is the correct way to begin writing your class?

AP Computer Science 1.1 Inheritance, Abstraction, and Polymorphism
203 Views

AP Computer Science 1.1 Inheritance, Abstraction, and Polymorphism. Which of the following are correct?

AP Computer Science 1.3 Inheritance, Abstraction, and Polymorphism
177 Views

AP Computer Science 1.3 Inheritance, Abstraction, and Polymorphism. Which of the following is true?

See All

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

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
493 Views

AP Computer Science 1.2 GridWorld Case Study and APIs. What is the direction of the actor?

AP Computer Science 1.4 Standard Algorithms
200 Views

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
191 Views

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
204 Views

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
191 Views

AP Computer Science 4.2 Standard Algorithms. What kind of algorithm is the following?