Answer
Method hiding occurs when a derived class defines a method with the same name as the parent class but does not override it.
The new method hides the parent method when accessed via the derived type.
Method hiding occurs when a derived class defines a method with the same name as the parent class but does not override it.
The new method hides the parent method when accessed via the derived type.
This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.
Sign in to access all features and personalize your learning experience.
Source: SugharaIQ