Assignment -3
Assignment -3
2 MARKS QUESTION
6 MARKS QUESTION
1. Differentiate between Virtual member function and Non virtual member function.
2. “Pure virtual function force the programmer to redefine virtual functions inside derived
class”- Comment on the statement.
3. Create a class called student which contain protected attributes such as
stud_name,stud_roll and stud_branch. Provide an appropriate method to take user input
to initialise these attributes and display the details regarding 50 students of a class.
4. Write short notes on multiple inheritance.
5. Write a program to define three classes A,B and C. Each class contains private data
members. Derive class C from A and B by applying multiple inheritance. Read and display
the data using constructors and deconstructor.
6. Create classes country, state, city and village .Arrange these classes in hierarchical
manner.
7. Write short notes on Static binding.
8. What do you mean by late binding .explain with example.
9. What do you mean by multilevel inheritance. Explain with example.
10. Write the comparison study of various access specifier in inheritance.
11. Write a program to overload unary + operator.
16 MARKS QUESTION