Chapter 4 Flashcards

1
Q

What is generalization

A

A base class represents general behavior of different distinct classes.

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

Does IS A relationship important in inheritance

A

Yes

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

What is sub typing

A

Behavior compatibility of base and drive class is sub typing. The use of drive class in place of base class and behavior does not change.

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

What is specialization

A

Specialization is reverse of sub typing. Specialization means that derived class is behaviorally incompatible with the base class. It means base class can not always be replaced by the derived class.

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

What is over riding

A

The drive class has its own behavior that over ride default behavior of base class. Specialization is related to over riding.

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

Can we instantiate abstract class

A

No

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

What are concrete classes

A

Drived classes from abstract class that can be instantiate

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