Programming Paradigms Flashcards
1
Q
Encapsulation
A
Hiding the internal implementation details of a class (ie: private vs public functions/data).
2
Q
What are the four major principles of Object Orientated Programming? (OOP)
A
Abstraction
Polymorphism
Inheritance
Encapsulation
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.
4
Q
Inheritance
A
Expresses a is-a and/or has-a relationship between two objects.
5
Q
Polymorphism
A
Has many forms.
6
Q
Object Orientated Programming OOP
A
Avoiding shared mutable state through encapsulating state and isolating other objects from local state changes.