answersLogoWhite

0


Best Answer

Direct base classes are those that are specified in a derived class' inheritance declaration. Indirect base classes are those that are inherited via the direct base classes.

class A{};

class B : public A{};

class C : public B{};

With respect to C, B is direct while A is indirect. With respect to B, A is direct.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between the direct and indirect base class?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the direct and indirect object of the sentence The teacher read the students a proverb at the end of the class?

"proverb" is the direct object, "students" is the indirect object.


What is the indirect object in the sentence Mrs. Buenaventura reads the class an interesting story?

The indirect object is 'the class'; the direct object is 'story'. Mrs. B. reads story.


What is the indirect object of this sentence Mr.Mathis gave the class free tickets to the movies?

The indirect object is class; the direct object is tickets: Mr. Mathis gave what? Tickets. He gave them to whom? The class.


What's the difference between the Class 365 and Class 465 466?

The difference between the Class 365 and Class 465, 466 is basically the cost.


Difference between exclusive or inclusive class intervals?

difference between inclusive and exclusive class interval


What is difference between first class and second class on train trips?

What is the difference between buying a 1st class and a 2nd class ticket on the train in England?


What is parent class in java?

Object Class is the parent class of all classes in java.Every class in the Java system is a descendant (direct or indirect) of the Object class.


Any difference between le cours and la classe if you are describing lessons?

In French, "le cours" refers to a specific class session or lecture, while "la classe" refers to the overall class or course. So, you might say "J'ai cours de mathématiques" (I have a math class) or "Je vais en classe de mathématiques" (I'm going to my math class).


What is the difference between a class What is the difference between a class III and class IV hitch and?

class III rated for up to 5,000lbs, class IV is rated for up to 10,000lbs towing capacity


What is the difference between abstract class and final class?

20


Difference between Mercedes e class elegance and classic?

What is the difference between Mercedes Benz E class 'Elegance'and classic


What is the difference between classes of IP addresses?

difference between ip address and class