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
2
Q
Inheritance
A
Subclasses ‘inherit’ properties (attributes and operations) from the superclass
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)