C# Programming - Inheritance
Exercise : Inheritance - True or False
- Inheritance - General Questions
- Inheritance - True or False
If a base class contains a member function func(), and a derived class does not contain a function with this name, an object of the derived class cannot access func().
If a base class and a derived class each include a member function with the same name, the member function of the derived class will be called by an object of the derived class
The size of a derived class object is equal to the sum of sizes of data members in base class and the derived class.
Private members of base class cannot be accessed by derived class member functions or objects of derived class.
A class D can be derived from a class C, which is derived from a class B, which is derived from a class A.