Q
Q
Unit - III
1. Define a class.
2. Define Member Function.
3. Define friend function of a class.
4. Define an Object. Give Syntax for Object creation.
5. List out the components of the class?
6. What is data member in C++? Give example.
7. Give syntax for creating an object.
8. List out the concepts of OOP. and benefits of OOP?
9. Difference between a class and a structure?
10. Differentiate Object and Class.
11. How to access private data members and public data members of a class?
12. Give the syntax for creating array of objects.
13. How the array of object can be created in C++ and list the need of array of object in C++?
14. Give an example to illustrate a Returning Object.
15. How the object can be return to main function? Give example.
16. How to declare a friend function of a class?
17. Give the syntax for defining the friend function of a class.
18. What is the importance of Friend Function?
19. How a friend function can be declared in C++? Give example.
Unit - IV
1. Define Operator overloading,
2. What are the rules for operator overloading?
3. How the operator overloading can be used in C++?
4. Define Inheritance with example. Illustrate Single Inheritance, Multiple Inheritance,
Multilevel Inheritance, Hierarchical Inheritance.
5. Define nested class.
6. How the nested class can be accessed from main function? Give example.
7. What are the difference between virtual function and pure virtual function?
8. Define polymorphism? List the types of polymorphism in C++.
Part – B
Unit – III