Programming Paradigms Flashcards

1
Q

Encapsulation

A

Hiding the internal implementation details of a class (ie: private vs public functions/data).

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

What are the four major principles of Object Orientated Programming? (OOP)

A

Abstraction
Polymorphism
Inheritance
Encapsulation

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

Abstraction

A

A concept or idea which is not associated with any particular instance. We don’t need to know anything about implementation, only the intent via class/Interface.

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

Inheritance

A

Expresses a is-a and/or has-a relationship between two objects.

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

Polymorphism

A

Has many forms.

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

Object Orientated Programming OOP

A

Avoiding shared mutable state through encapsulating state and isolating other objects from local state changes.

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