Rajesh Shukla Catalyst
Give Vision To Your Future
C++ Tutorial Home Page
What is Inheritance Need For Inheritance Advantages of Inheritance Types of Inheritance Single Inheritance Multilevel Inheritance Multiple Inheritance Sequence of execution of constructors and destructors in inheritance To initialize base class data elements using derived class constructors Hierarchical Inheritance Hybrid Inheritance Virtual base class(Multipath Inheritance) Container class Rules Of Inheritance public Inheritance private Inheritance protected Inheritance MCQ’s Inheritance
Example:3
Based on the user choice take input for details of either student, employee or product and display the details.
code
Output:
Important Pages
About UsContact UsPrivacy PolicyDisclaimerSitemap