What is method hiding in Java and how to use it?
Answers
Answered by
2
method hiding means not allowing the data to be accessed outside the specific class
Answered by
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
Chemistry,
7 months ago
English,
7 months ago
Social Sciences,
7 months ago
Science,
1 year ago
English,
1 year ago