ShmoopTube
Where Monty Python meets your 10th grade teacher.
Search Thousands of Shmoop Videos
AP Computer Science 2.1 Inheritance, Abstraction, and Polymorphism 175 Views
Share It!
Description:
AP Computer Science 2.1 Inheritance, Abstraction, and Polymorphism. Which of the following is not true about interfaces and abstract classes?
Transcript
- 00:00
Thank you We sneak And here's her shmoop du jour
- 00:05
brought to you by abstraction providing away from manic artists
- 00:09
to believe they are creating art Okay which of the
- 00:13
following is not true about interfaces and abstract classes Let
- 00:20
him mumbling don't uncle choi say seems to be true
Full Transcript
- 00:24
purpose of an abstract classes to provide a hybrid between
- 00:27
a concrete class and an interface it can implement some
- 00:30
methods and choose not painful and others while an interface
- 00:32
can't implement any and a regular class must implement all
- 00:37
also today all right choice b seems like it might
- 00:39
be Our answer statement is actually office and the rules
- 00:42
of abstract and interfaces abstract classes can contain instance variables
- 00:47
while interfaces can't let's check the other choices though to
- 00:50
make sure we've got the right one here All right
- 00:53
choice sees true both abstract classes and interfaces can have
- 00:57
final variables and choice Dee is also true You can
- 01:00
only create instances of concrete classes and finally we see
- 01:03
that he is true Though it is somewhat subjective this
- 01:06
outlines the basic use are abstract classes and interface is
- 01:10
the correct answer is b that's We shouldn't give abstract
- 01:12
art it's a break We can kind of see the 00:01:15.415 --> [endTime] fish in this painting
Up Next
AP Computer Science 1.2 GridWorld Case Study and APIs. What is the direction of the actor?
Related Videos
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?