Which of the following in C++, is inherited in a derived class from base class?
Show answerHide answer
Correct answer: (C) Data Members
Explanation
Data members in C++ is inherited in a derived class from base class. Constructor is a member function of a class which initialize objects of a class. In C++, constructor is automatically called when object create. It is special member function of the class. Destructor is a member function which destructs or deletes an object. Virtual methods is a method which is redefined (over- ridden) in derived class.