What is multilevel inheritance in Cpp?

All QuestionsCategory: Cpp LanguageWhat is multilevel inheritance in Cpp?
Chetan Shidling Staff asked 5 years ago

I need short information.

1 Answers
Best Answer
Chetan Shidling Staff answered 5 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