What are 3 ways to inherit a class in C++
Public
Private
Protected
What is Implicit Default constructor
Compiler generates implicit default constructor for any class in case we have not given any constructor for the class.
What is Explicit Default constructor
If user has given constructor for any class without any arguments or with all arguments with default values then it is also default constructor according to definition but it is explicit (user defined) default constructor.
How constructor called in inheritance
base class constructor called first and then drive class constructor
How destructor called in inheritance
drive class destructor called first and then base class destructor. Reverse of constructor