Home / C# Programming / Inheritance :: Discussion

Discussion :: Inheritance

  1. 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

  2. A.
    True
    B.
    False

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    This is because the member functions are always searched in the derived class and then in the base class.


Be The First To Comment