Open In App

NTA | UGC NET 2019 December | Question 4

Which of the following statements are true regarding C++?

(a) Overloading gives the capability to an existing operator to operate on other data types.



(b) Inheritance in object oriented programming provides support to reusability.

(c) When object of a derived class is defined, first the constructor of derived class is executed then constructor of a base class is executed.



(d) Overloading is a type of polymorphism.

Choose the correct option from those given below:

(A)

(a) and (b) only     

(B)

(a), (b) and (c) only

(C)

(a), (b) and (d) only     

(D)

(b), (c) and (d) only

Answer: (C)
Explanation:

True: Overloading gives the capability to an existing operator to operate on other data types.

True : Inheritance in object oriented programming provides support to reusability.

False: When object of a derived class is defined, first the constructor of derived class is executed then constructor of a base class is executed.

True : Overloading is a type of polymorphism.

 

Quiz of this Question
Please comment below if you find anything wrong in the above post

Article Tags :
Uncategorized