CS Electrical And Electronics
@cselectricalandelectronics

What is multilevel inheritance in Cpp?

All QuestionsCategory: Cpp LanguageWhat is multilevel inheritance in Cpp?
CS Electrical And Electronics Staff asked 4 years ago

I need short information.

1 Answers
Best Answer
CS Electrical And Electronics Staff answered 4 years ago

The multilevel inheritance means the class is derived from existing class or base then again the new class is derived from the previous new class. You can understand better by seeing syntax.

Multilevel Inheritance Syntax

class A {……}                       //Base class
class B : public A {…….};     // B derived from A
class C : public B {…….};     //C derived from B