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

asked
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.
answered
User Ahajib
by
8.1k points

No related questions found

Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.