Section 3 QuestPond OOPS Flashcards

1
Q

Why do we need OOPS?

A

This forces developers to think in terms of real world objects.

Example,

When we deign a program, we think it in a real-world obejcts. We capture nouns as class.

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

Pillars of OOPS?

A

APIE..

Abstraction

Polmorphism

Inherinace

Encapsulation

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

What is class and Objects?

A

Class is a blueprint of an object.Object is an instance of an object.

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

Abstraction vs Encapsulation.

A

Abstraction is hiding the unnecessary data and encapsulation is hide complexity.

ABstraction happens in design phase… Encapsulation during implementation phse.

Encapsulation implements abstraction.

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

explain Inheitance?

A

Inheitance defines a parent child relationship.

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

What is is-a relationship?

A

same as inheirtnace…

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

explain Virtual Keyword?

A

Virtual keywod helps to overide the implementation of a base class.

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

What is method overlaoding

A

Same method name with different siganatures.

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

Difference between overriding overloading?

A

Overriding is a parent child relationship

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