Object-oriented Programming Flashcards
1
Q
Object
A
An abstract entity and its components-data and actions
i.e. Cars, fractions, dates
2
Q
Encapsulation
A
Data and actions are limited to the object in which they are defined.
3
Q
Inheritance
A
A parent object holds common data and actions for a group of related child objects. Multiple inheritance is not required
4
Q
Polymorphism
A
Actions have the same name but different parameter lists and processes
5
Q
Advantages of Encapsulation
A
Limits side effects and dependencies.
6
Q
Advantages of Inheritance
A
Enhances reuse and reduces maintenance overheads