2081 3

Object Oriented Programming208110 marksInheritance definition and purpose

List any two types of inheritance with example.Describe the order of execution of constructors and destructors in derived class.[5+5]

List any two types of inheritance with example.Describe the order of execution of constructors and destructors in derived class.[5+5]

--- (a) Two Types of Inheritance with Examples When a derived class inherits from only one base class, it is called single inheritance. Syntax: Example: Diagram: --- When a derived class inherits from more than one base class, it is called multiple inheritance. Syntax: Example: Diagram: --- (b) O...

Up nextDescribe the features of object oriented programming.