ShmoopTube
Where Monty Python meets your 10th grade teacher.
Search Thousands of Shmoop Videos
Playlist AP® Computer Science: Inheritance, Abstraction, and Polymorphism 15 videos
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 1.1 Inheritance, Abstraction, and Polymorphism. Which of the following are correct?
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 2.3 Inheritance, Abstraction, and Polymorphism 169 Views
Share It!
Description:
AP Computer Science 2.3 Inheritance, Abstraction, and Polymorphism. Which of the following is false?
Transcript
- 00:00
Thank you We sneak and here's your smoke Do george
- 00:05
brought to you by way give up our we supposed
- 00:09
to keep thinking of all these puns Wait just All
- 00:15
right consider the time class public land private our minutes
- 00:23
For many things alright we would like to write a
Full Transcript
- 00:25
subclass twenty four hour time with added functionality in order
- 00:30
to meet all of your international travel needs which of
- 00:33
the following is false true let's go through well choice
- 00:41
a states that the subclass will inherit the basic functionality
- 00:46
from its super class This is the basic definition of
- 00:49
what a subclass does so must be true He is
- 00:54
also true Because subclass is inherit all of their super
- 00:57
class methods Those super class methods can be performed on
- 01:01
subclass objects You can also say that choice see is
- 01:04
true because some plus objects can always be stored inside
- 01:07
of their super classes but not the other way around
- 01:10
Well choice t seems like it might be falls It
- 01:13
states that twenty four hour time methods can access time
- 01:17
data members well let's Look at the time data method
- 01:21
well all three of them are declared as private recalled
- 01:24
it Outside classes never access private data fields even some
- 01:28
classes over inherit all the private data They could only
- 01:31
excess them through getters All right well seems like these
- 01:37
are answer but let's See why Choice he's True it
- 01:41
states that the print method in time can be overridden
- 01:44
by different new print method in twenty four hour time
- 01:48
Well this is a given property of sub classes if
- 01:51
they need to change and inherited method to suit their
- 01:54
needs While the computer allows it no promises will be
- 01:58
able to avoid using more bad months in the future 00:02:00.84 --> [endTime] So watch out Look
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?