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

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

What does OOP stand for?

A

OBJECT-ORIENTED PROGRAMMING.

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

What are the four main principles of O.O.P?

A

A. P.I.E
- ABSTRACTION
- POLYMORPHISM
- INHERITANCE
- ENCAPSULATION

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

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

What is ‘Polymorphism’ in Java?

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

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

What is ‘Encapsulation’ in Java?

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