OOP-2019 Pattern (22-23)
OOP-2019 Pattern (22-23)
Q1) a) Explain the polymorphism featurë ofQOP. What are the different ways
to achieve
polymorphism iC¥+ Language? Explain them along with
examples. 51
b) What is operator overloàding?Write a program to overload '+'
for adding two complex operator
class.
numbèrs which are object of below complex
43. [61
Class Complex
02/200 OR
04) a) Writea program to create file, read and write record into it. Every
recondeontams employee name, id and salary. Store and retrieve atleast
170.6
3data 171
b) What deyou mean by file
2/202313:17:53
handling? Explain the ¥ellowing functions.
P014271
4.1 171
1) openO
i) get)
ii) getline0
c) Write a program to create des a_ing constructor function.
1 7 0 .0
69
41
b)
b) What is an exception specification? Explain using suitable example.
1 3
61
c)
c) 7/02/
What is generic programming? How it is implemuited »C+
OR
PO.
P O
20 171
13:1OR
Q8) a) What are majbi sompanents of STL. 14
b) State functionS ofVGctor STL. Write a program to explain the same.
7/02
o0 16
c) What s container? List the container classes in C++. Explain any one
ofthem using program.
143.1
CEGPO107/4202/712023
OO0
PO142.6
271
07/02/202
1 3
13::17:5
17:5314
13.170.6
14.143 2/202
133 : 1 7 : 51
3 4
2014271
0