2 votes 2 votes Which of the following, in C++, is inherited in a derived class from base class? constructor destructor data members virtual methods Object Oriented Programming ugcnetcse-june2015-paper2 oops inheritance + – go_editor asked Jul 30, 2016 recategorized Nov 2, 2017 by Sanjay Sharma go_editor 6.7k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes ans is C only data members(if they are not private) are inherited in a derived class Sanjay Sharma answered Jul 30, 2016 Sanjay Sharma comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes only data members can be inheritable kd..... answered May 12, 2018 kd..... comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes Data members in C++ is inherited in a derived class from base class Constructor is a member function of a class which initializes objects of a class. In C++,Constructor is automatically called when object(instance of class) 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-riden) in derived class So, option (C) is correct. Prasanjeet Ghosh answered Jun 25, 2018 Prasanjeet Ghosh comment Share Follow See all 0 reply Please log in or register to add a comment.