CS Electrical And Electronics
@cselectricalandelectronics

Which type of inheritance is followed in this code.

All QuestionsCategory: Cpp LanguageWhich type of inheritance is followed in this code.
Anonymous asked 3 years ago

class A { };
class B: public A { };
class C: public B { };
 
Options:
 

  1. Single Inheritance
  2. Multiple Inheritance
  3. Multilevel Inheritance
  4. None of the above