1.

Write About The Members That A Derived Class Can Add?

Answer»

DERIVED classes can use the constructors, DESTRUCTORS, and assignment operator methods of their base classes. It can also override the member functions of the base CLASS. For EXAMPLE, if the base class has an assignment operator method, the compiler uses that method for the derived class as well, which is fine unless the derived class also adds its own data members (in which CASE, you should create a new operator = method for the derived class).

Derived classes can use the constructors, destructors, and assignment operator methods of their base classes. It can also override the member functions of the base class. For example, if the base class has an assignment operator method, the compiler uses that method for the derived class as well, which is fine unless the derived class also adds its own data members (in which case, you should create a new operator = method for the derived class).



Discussion

No Comment Found