ShmoopTube
Where Monty Python meets your 10th grade teacher.
Search Thousands of Shmoop Videos
AP Computer Science A Videos 108 videos
AP Computer Science: Classes and Objects Drill 3, Problem 5. Which of the following is not an object?
AP Computer Science: Classes and Objects Drill 3, Problem 4. Which of the following are objects?
AP Computer Science 4.1 Classes and Objects. Which of the answers is the best definition of a postcondition?
AP Computer Science 4.3 Inheritance, Abstraction, and Polymorphism 173 Views
Share It!
Description:
AP Computer Science 4.3 Inheritance, Abstraction, and Polymorphism. What are valid reasons to create ForcedToFly as an interfaced class instead of an abstract class?
Transcript
- 00:00
Thank you We sneak And here's your shmoop du jour
- 00:05
brought to you by forced to fly Certainly not something
- 00:10
you want to hear your pilot complaining about as you
- 00:11
prepare for takeoff All right what are valid reasons for
- 00:15
choosing to create Forced to fly as an interface class
Full Transcript
- 00:19
is dead of an abstract flack gnarly near your pencil
- 00:24
answered All right well it's thing option one seems like
- 00:30
a valid choice if objects other than animals were to
- 00:33
fly while the fly method would be different so we
- 00:36
can't implement the method because it would be unique for
- 00:39
different objects Well there's also clears option two If we
- 00:43
declared the method in an abstract class and implemented it
- 00:48
it would be the same across all club crashed up
- 00:51
Option three is also correct because you can't make sub
- 00:53
classes of interfaces but you can with abstract class that
- 00:58
work But if the programmer thought no sub classes would
- 01:01
be necessary an abstract class wouldn't be necessary Yeah well
- 01:06
although you claim that abstract classes aren't necessary jackson pollock 00:01:10.278 --> [endTime] uh might argue with you
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?