Data Structures using C PlusPlus: Chapter 2: Inheritance and Polymorphism

Inheritance and Polymorphism: Important Questions

Data Structures using C++ Program

Data Structures using C PlusPlus: Chapter 2: Inheritance and Polymorphism: Anna University Part B Important Questions and Answers

Data Structures using C ++

Chapter 2: Inheritance and Polymorphism


Anna University Part B Important Questions and Answers 

 

1. What is Inheritance ? List out the advantages of Inheritance.

2. Explain the terms base class and derived class.

3. Explain the usage of public, private and protected access specifiers.

4. Explain with examples, the types of inheritance in C++.

5. Explain the types of inheritance with example.

6. What is multiple inheritance? Discuss the syntax and rules of multiple inheritance in C++. How can you pass parameters to the constructors of base classes in multiple inheritance? Explain with suitable example.

7. What is inheritance ? List out the advantages of inheritance.

8. Write a C++ program to illustrate the concept of hierarchical inheritance.

9. Write C++ program to implement multiple inheritance.

10. Write short note on Down casting.

11. Explain Class Object to Base and Base to Class Object conversions using C++ with suitable example.

12. Explain the order of execution of constructor and destructor with the help of suitable example.

13. Write a program to illustrate how constructors are implemented when the classes are inherited?

14. Explain the concept of composition with example.

15. What is the use of this pointer?

16. What is meant by polymorphism? Explain the various types of polymorphism in C++ with suitable examples.

17. Explain the difference between Compile time polymorphism and Run time polymorphism. Also give the implementation of each type in C++.

18. State the rules for virtual functions. Write a C++ program to declare a virtual function and   demonstrate it.

19. Explain run time polymorphism with example program in C++.

20. Explain about implementation of runtime polymorphism in C++ with an example.

21. Explain the concept of function overriding. Differentiate between function overloading and function overriding.

22. What is called pure virtual function ?

23. Explain virtual destructor with example.

24. Explain the following ‒ Early binding and late binding.

 

Data Structures using C PlusPlus: Chapter 2: Inheritance and Polymorphism : Tag: Data Structure, C++, C Programing : Data Structures using C++ Program - Inheritance and Polymorphism: Important Questions


Data Structures using C PlusPlus: Chapter 2: Inheritance and Polymorphism



Under Subject


Data Structures using CPlusPlus

CS25C05 2nd Semester ECE Dept | 2025 Regulation | 2nd Semester 2025 Regulation



Related Subjects


English Essentials II

EN25C02 2nd Semester | 2025 Regulation | 2nd Semester 2025 Regulation



Linear Algebra

MA25C02 2nd Semester | 2025 Regulation


Electron Devices

EC25C01 2nd Semester ECE Dept | 2025 Regulation | 2nd Semester 2025 Regulation


Data Structures using CPlusPlus

CS25C05 2nd Semester ECE Dept | 2025 Regulation | 2nd Semester 2025 Regulation


Circuits and Network Analysis

EC25C02 2nd Semester ECE Dept | 2025 Regulation | 2nd Semester 2025 Regulation


Re-Engineering for Innovation

ME25C05 2nd Semester | 2025 Regulation | 2nd Semester 2025 Regulation


Engineering Drawing - Laboratory

ME25C01 2nd Semester | 2025 Regulation | 2nd Semester 2025 Regulation


Data Structures using CPlusPlus - Laboratory

CS25C05 2nd Semester ECE Dept | 2025 Regulation | 2nd Semester 2025 Regulation


Devices and Circuits Laboratory

EC25C03 2nd Semester ECE Dept | 2025 Regulation | 2nd Semester 2025 Regulation