AP Computer Science 2.1 Inheritance, Abstraction, and Polymorphism
Recommendation
Want a study guide too?
AP Computer Science 2.1 Inheritance, Abstraction, and Polymorphism. Which of the following is not true about interfaces and abstract classes?
AP | AP Computer Science |
AP Computer Science | Inheritance, Abstraction, and Polymorphism |
Computer Science | AP Computer Science |
Language | English Language |
Object-Oriented Program Design | Program and Class Design |
Test Prep | AP Computer Science |
Transcript
purpose of an abstract classes to provide a hybrid between
a concrete class and an interface it can implement some
methods and choose not painful and others while an interface
can't implement any and a regular class must implement all
also today all right choice b seems like it might
be Our answer statement is actually office and the rules
of abstract and interfaces abstract classes can contain instance variables
while interfaces can't let's check the other choices though to
make sure we've got the right one here All right
choice sees true both abstract classes and interfaces can have
final variables and choice Dee is also true You can
only create instances of concrete classes and finally we see
that he is true Though it is somewhat subjective this
outlines the basic use are abstract classes and interface is
the correct answer is b that's We shouldn't give abstract
art it's a break We can kind of see the 00:01:15.415 --> [endTime] fish in this painting