Chapter 25 Flashcards

1
Q

What is overriding

A

The derive class can override the member functions of its base class.

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

What is the difference between overriding and overloading

A

Overloading is done within the scope on one class and overriding is done in the scope of parent child. For overloading class is same and function name is same but the number of parameter is different. but in overriding everything can be same.

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

What is direct base class

A
class Child1: public Parent1 
Parent1 is direct base class
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is indirect base class

A

An indirect base class is not explicitly listed in a derived class. It is inherited one or two levels up in hierarchy.

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