Which of the following are true for inherited operators? 1- If any member function is defined to be virtual, the destructor should also be defined to be virtual. 2-If an assignment operator is defined...




Which of the following are true for inherited operators?







1- If any member function is defined to be virtual, the destructor should also be defined to be virtual.



2-If an assignment operator is defined in the base class, then an assignment operator must be defined in the derived class.



3-The copy constructor for the derived class automatcally calls the default constructor of the base class before it runs.



4-Relational operators need not be defined in the derived classes if there is a virtual function that can be used to compare.



5-All overloaded operators except the copy assignment operator(=) are inherited.




Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here