Object Oriented Programming Flashcards

1
Q

What is inheritance

A

Sub classes can get attributes from other classes

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

What is overriding

A

When a class must redefine an attribute from a class it previously inherited overriding it’s usual attribute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

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

What is composition

A

Where if you break a class it breaks all the sub classes

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

Aggregation

A

If you break a class it doesn’t break all the sub classes

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

What is the term contains

A

Classes built up of other classes so you can edit the subclasses

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