2081 3

BIT153 ยท 2081 ยท 10 marks

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]

Object Oriented ProgrammingChapter 6: Inheritance and PolymorphismInheritance definition and purpose

--- (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...