FOUR MAIN PRINCIPLES Flashcards
Tests knowledge of the four main principles of O.O.P
1
Q
What is the alternative to OOP?
A
PROCEDURAL PROGRAMMING
2
Q
What does OOP stand for?
A
OBJECT-ORIENTED PROGRAMMING.
3
Q
What are the four main principles of O.O.P?
A
A. P.I.E
- ABSTRACTION
- POLYMORPHISM
- INHERITANCE
- ENCAPSULATION
4
Q
What is ‘Abstraction’ in Java?
A
A PROCESS WHICH PROTECTS DATA BY RESTRICTING ACCESS TO IT
LIKE THE PROCESS USED TO RETRIEVE MONEY FROM A BANK ACCOUNT
5
Q
What is ‘Polymorphism’ in Java?
A
6
Q
What is ‘Inheritance’ in Java?
A
INHERITANCE OCCURS WHEN A SUBCLASS GETS A COPY OF FEATURES FROM ITS SUPERCLASS
LIKE A CHILD INHERITING FEATURES FROM A PARENT
7
Q
What is ‘Encapsulation’ in Java?
A
8
Q
A