0% found this document useful (0 votes)
9 views

Assignment -3

The document contains a series of questions related to object-oriented programming concepts in C++, including abstract classes, inheritance, operator overloading, and virtual functions. It is structured into three sections with varying mark allocations for 2 marks, 6 marks, and 16 marks questions, prompting for definitions, explanations, and programming tasks. The questions aim to assess understanding and application of C++ programming principles.

Uploaded by

m acharya
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Assignment -3

The document contains a series of questions related to object-oriented programming concepts in C++, including abstract classes, inheritance, operator overloading, and virtual functions. It is structured into three sections with varying mark allocations for 2 marks, 6 marks, and 16 marks questions, prompting for definitions, explanations, and programming tasks. The questions aim to assess understanding and application of C++ programming principles.

Uploaded by

m acharya
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

MODULE-3

2 MARKS QUESTION

1. Define Abstract Class. What is its use?


2. What is the use of this()?
3. What do you mean by static binding and dynamic binding?
4. How about Abstract Data type and pure virtual function are linked? Explain with example.
5. Differentiate between function overloading and Operator Overloading by giving example.
6. What are virtual and pure virtual function.
7. What is an abstract class? Explain the use of Abstract base class in C++.
8. What is inheritance and what are the different type of inheritance are available in c++?
9. Which operators cannot be overloaded in C++ ?
10. What are the rules for overloading operators.

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

1. What are the different types of inheritance? Explain with example.


2. What is function overriding? How can we eliminate function overriding . Describe with
example.

You might also like