Object Oriented Programming in C++
Object Oriented Programming in C++
Page 1 of 2
4. a) Differential between subclass and subtype? How is ambiguity 8
resolved in multiple inheritances? Explain with suitable program.
b) Explain about is a rule and has a rule. Write a program for 7
composition in class.
5. a) Define two class ‘polar’ and ‘rectangle’ to represent points in polar 8
and rectangular coordinate. Use conversion routine in source object
to convert polar coordinate to rectangular coordinate.
b) What is a virtual function? When and how do we make a function 7
virtual? Explain with a suitable example.
6. a) What is exception? How is it handled in C++? Write a program to 8
handle exception with multiple catch blocks.
b) Explain CRC cards and sequence diagram with suitable examples. 7
7. Write short notes on: (Any two) 2×5
a) Function overloading
b) This pointer
c) Programming in small and programming in large
Page 2 of 2