Program to explain how the constructor & destructor are invoked in inheritance.
Firstly inheritance means to aquire the properties of previously existing classes. Here constructors initialize the member variable where as destructor destroys the data object. Using these two terms we invoke inheritance. It means to exhibit the pr...See more
Answer the Question