BSC Bca 2 Sem Object Oriented Programming Using CPP 21103329 Dec 2021
BSC Bca 2 Sem Object Oriented Programming Using CPP 21103329 Dec 2021
21103329
Name : .....................
7. What are constructor and destructor? What are the uses of constructor and destructor?
15. Write a program to perform addition of time in hours and minutes format using objects as
function arguments.
21. What are the different input and output functions used in files?
(6×5=30)
Part C
Answer any two questions.
Each question carries 15 marks.
22. Explain the following: (a) Function Prototyping (b) Return by Reference
23. Explain friend functions. Write a program to swap the private data of two classes using
friend functions.
24. What is difference in overloading binary operators using friend functions and member
functions? Explain.
Page 2/2