Computer Science, asked by marshall5405, 1 year ago

What is method hiding in Java and how to use it?

Answers

Answered by skriisha
2

method hiding means not allowing the data to be accessed outside the  specific class

Answered by Rajput0111
3

You use the final keyword in a method declaration to indicate that the method cannot be overridden by subclasses. The Object class does this—a number of its methods are final . ... Methods called from constructors should generally be declared final.

Similar questions