Last Flashcards

1
Q

One of the key features of object-oriented programming,
refers to the bundling of fields and methods inside a single class.
- It prevents outer classes from accessing and changing fields and methods of a class.
- This also helps to achieve data hiding.

A

Encapsulation

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

Allowed us to restrict unauthorized access from outside the class.

A

Data Hiding

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

One of the key features of OOP that allows us to create a new class from an existing class.

A

Inheritance

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

The new class that is created from inheritance is known as?

A

Subclass

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

The existing class from where the child class is derived is known as?

A

Superclass

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

Is used to call the method of the parent class from the method of the child class.

A

Super keyword

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

Also known as runtime polymorphism.

A

Method Overriding

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

A single subclass extends from a single superclass.

A

Single Inheritance

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

A subclass extends from a superclass and then the same subclass acts as a superclass for another class.

A

Multilevel Inheritance

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

Multiple subclasses extend from a single superclass.

A

Heirarchical Inheritance

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

A single subclass extends from
multiple superclasses.

A

Multiple Inheritance

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

A combination of hierarchical and multiple inheritance,where a class inherits from multiple classes, some of which are derived from
a common base class.

A

Hybrid Inheritance

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

It allows a single interface to be used for different type of actions. It simply means more than one form.“Poly” means MANY and “Morph”means “Take Different Forms”

A

Polymorphism

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

The same method is present in
both the superclass and the
subclass. Then, the method in
the subclass overrides the same
method in the superclass.

A

Method Overriding

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

Multiple methods with the same name but different parameters

A

Method Overloading

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

Refers to the concept of hiding complex implementation details and exposing only the essential features of a software component to the user.

A

Abstraction