0% found this document useful (0 votes)
23 views2 pages

QB Oop

Uploaded by

prafulphanse99
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views2 pages

QB Oop

Uploaded by

prafulphanse99
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

1. Describe the concept of virtual base class with example.

2. Write a C++ program to implement following inheritance: Refer Fig. No.

Accept and display total of one object of result.


3. Write a program to implement inheritance as shown in figure No. 2.
Assume suitable member function.

4. Accept and display data of one Teacher and one Officer.


5. Describe all visibility modes and effects with example
6. Develop c++ program to implement inheritance shown

7. Develop c++ program to implement virtual Base class.


8. Develop c++ program to implement inheritance shown in fig.
9. What is inheritance? Give different types of inheritance.
10. Explain multilevel inheritance with an example
11.Write a C++ program to implement multiple inheritance as shown in Figure .
Accept and display data of test marks and sport’s marks using object of class
Result.

12.Explain virtual base class with an example.


13.Write a program on single inheritance.
14.Illustrate the concept of virtual base class with suitable class.
15.Write a program on hybrid inheritance.
16.Explain abstract class with suitable example.
17.Write a C++ program to declare a class college with name and code. Derive new
class as student with members as name. Accept and display details of one student
along with college data.
18.Write a program to overload + operator to add two Time objects using friend
function.
19.Write a program to copy one string to another using pointer to string.
20.Write a C++ program to declare a class train with members as train no and name.
Accept and display data for five object of train. Use pointer to object .
1. Define file with it’s operations.
2. Write a program for closing a file.
3. Give the syntax and use of fclose
4. Develop a C++ program to read content of file abc.txt
5. Write a program to count number of lines in a file.
6. Give the syntax of fclose ( ) method.
7. List C++ stream classes along with their function (any two classes)

You might also like