Object Oriented Programming Flashcards
1
Q
What is inheritance
A
Sub classes can get attributes from other classes
2
Q
What is overriding
A
When a class must redefine an attribute from a class it previously inherited overriding it’s usual attribute
3
Q
Polymorphism
A
Changing the number of variables from a lnherited class
+ means that the procedures are public and can be changed
- means that the variables cannot be changed as they are private
4
Q
What is composition
A
Where if you break a class it breaks all the sub classes
5
Q
Aggregation
A
If you break a class it doesn’t break all the sub classes
6
Q
What is the term contains
A
Classes built up of other classes so you can edit the subclasses