Professional Documents
Culture Documents
OOP I Scheme 2022 23 Class Test II Question Bank
OOP I Scheme 2022 23 Class Test II Question Bank
OOP I Scheme 2022 23 Class Test II Question Bank
(08)
Class : Info
Accept and display data of one teacher and one student using object of class ‘Info’.
d) Write a C++ program to overload binary operator ‘+’ to concatenate two strings.
e) Describe with examples, passing parameters to base class constructor and derived class
constructor by creating object of derived class.
f) Write a C++ program to overload area() function to calculate area of shapes like triangle
,square, circle.
g) Write a C++ program to count number of spaces present in contents of file.
h) Write a C++ program to implement following inheritance.
Class : Employee
Data Member : empid
empcode