You are on page 1of 1

CENTRAL UNIVERSITY OF SOUTH BIHAR

Department of Computer Science


Class test-2, Session: 2019-20
---------------------------------------------------------------------------------------------------------------------------
Programme: M. Sc Computer Science Semester: Second
Course title: Object Oriented Programming Methodology Course code: MSCSC2002C04
Maximum Marks: 10 Duration: 1:00 hrs.
---------------------------------------------------------------------------------------------------------------------------
Answer all questions.

1. Define a class String. Write C++ program to overload == operator to


compare two stings. (5 marks)

2. How does ambiguity arise in multiple inheritances? Write program


fragment to show it and also mention function overriding.
(1+2 marks)

3. How do you ensure that single copy of a variable is inherited in


multipath inheritance (hybrid inheritance)? Also explain virtual
function. (1+1 marks)

You might also like