3. Basic principles and terminology (OO analysis and design) Flashcards

1
Q

Encapsulation

A

Bundling together of data and behaviour so they are inseparable
Information hiding is the process of hiding all details of the object except those strictly necessary to the outside

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

Inheritance

A

Subclasses ‘inherit’ properties (attributes and operations) from the superclass

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

Polymorphism

A
Ability of different objects within the same inheritance hierarchy to act appropriately to the same message
e.g. Superclass animal with subclasses of tiger, elephant, mouse, and there is a operation makeNoise (each subclass will have the makeNoise operation but in a different way and a different noise)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly