click below
click below
Normal Size Small Size show me how
Comp 3 2.1
Object-Oriented Programming
| Question | Answer |
|---|---|
| Object | a unique instance of a data structure defined according to the template provided by its class |
| Class | a set of objects that share a common structure and common behaviour |
| Encapsulation | the mechanism of 'bundling together' the attributes and methods |
| Inheritance | a relationship among classes where one class shares the structure and/or behaviour in one (single inheritance) or more (multiple inheritance) of other classes |
| Polymorphism | where the same name can be given to an inherited method but each class may implement the method differently |
| Containment | denotes whole/part physical containment |
| Aggregation | models whole/part relationships |