What does data or method hiding refer to?

Data or method hiding occurs when you create a method or data element in a derived class that replaces a base method or data element. This occurs when the new keyword is used to create the new method or method signature. It can also be referred to as shadowing.

No comments:

Post a Comment