53.0k views
4 votes
If a ____ method has the same name as a parent class method and you use the name with a child class object, the child method hides the original.

User Linxie
by
7.5k points

1 Answer

2 votes
The static method applies in this situation. A static method does not require the class to be instantiated in order to run and is not bound to the object of the class. A static method is associated with a class and is only in the outer class.
User Ahajib
by
8.1k points