Oops 1
Oops 1
1. Inheritance:
○ Explain different types of inheritance with suitable examples. (Frequently Asked)
2. Friend Functions:
○ What is the purpose of a friend function? Write a C++ program demonstrating its
use. (Repeated in 2020, 2022)
3. Polymorphism:
○ Differentiate between function overloading and function overriding with examples.
(2021, 2023)
4. Dynamic Memory Allocation:
○ Write a program in C++ to demonstrate the use of new and delete operators.
(Frequently Asked)
5. Scope Resolution Operator:
○ Explain the use of the scope resolution operator in accessing global variables
and class members. (2019, 2022)
6. Encapsulation:
○ Write a program to demonstrate encapsulation by creating a Student class with
private data members and public methods. (2020, 2023)
7. Abstract Classes:
○ What is an abstract class? How is it different from a regular class? Provide an
example. (Repeated in 2018, 2022)
8. this Pointer:
○ Explain the role of the this pointer in class methods. (Frequently Asked)
9. Returning Objects:
○ Write a C++ program to demonstrate returning objects from functions. (2021)
10. Nested Classes:
○ What are nested classes? Write a program to show their use. (2023)