RTUComputer ScienceYr 2024 · Sem 3

Object Oriented Programming

2024

14 questions

Q1

Why do we need the pre-processor directive # include < iostream >?

Show Answer
Q11

What is a friend function? What are the merits and demerits of using friend function?

Show Answer
Q12

What do you mean by Dynamic initialization of objects?

Show Answer
Q13

When do we make a virtual function "pure"? What are the implications of making a function a pure virtual function?

Show Answer
Q14

Write a class template to represent generic vector. Include member functions to perform the following tasks: a) To create the vector b) To modify the value of a given element c) To multiply by a scalar value d) To display the vector in the form (10, 20, 30...... )

Show Answer