Creating a concrete class Flashcards

1
Q

Define a concrete class !

A

A concrete class is any non-abstract class

A concrete class is the first non abstract class that extends an abstract class and is required to implement all its abstract methods

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What do you have to check when a concrete class extends an abstract class ?

A

You have to make sure that all abstract methods are overridden in the concrete class that extends the abstract class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Give a characteristic of an abstract class that inherits another abstract class !

A

An abstract class that extends another abstract class is not required to override any methods declared in the super class that is abstract

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How does that impact a concrete class ?

A

A concrete class that extends an abstract class must provide an implementation for all the inherited abstract methods

How well did you know this?
1
Not at all
2
3
4
5
Perfectly