Object-oriented Programming Flashcards

1
Q

Object

A

An abstract entity and its components-data and actions

i.e. Cars, fractions, dates

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

Encapsulation

A

Data and actions are limited to the object in which they are defined.

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

Inheritance

A

A parent object holds common data and actions for a group of related child objects. Multiple inheritance is not required

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

Polymorphism

A

Actions have the same name but different parameter lists and processes

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

Advantages of Encapsulation

A

Limits side effects and dependencies.

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

Advantages of Inheritance

A

Enhances reuse and reduces maintenance overheads

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