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:
Statement (a) is true.
Operator overloading allows an existing operator to work with user-defined or other data types.
Statement (b) is true.
Inheritance supports code reusability in object oriented programming.
Statement (c) is false.
When an object of derived class is created, the base class constructor is executed first, then derived class constructor is executed.
Statement (d) is true.
Overloading is a form of compile-time polymorphism.
So, correct statements are:
(a), (b) and (d)
Online Test Series, Information About Examination,
Syllabus, Notification
and More.
Online Test Series, Information About Examination,
Syllabus, Notification
and More.