AP Computer Science 2.1 Inheritance, Abstraction, and Polymorphism

AP Computer Science 2.1 Inheritance, Abstraction, and Polymorphism. Which of the following is not true about interfaces and abstract classes?

APAP Computer Science
AP Computer ScienceInheritance, Abstraction, and Polymorphism
Computer ScienceAP Computer Science
LanguageEnglish Language
Object-Oriented Program DesignProgram and Class Design
Test PrepAP Computer Science

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