Forums Register Login

disable override

+Pie Number of slices to send: Send
the scenario is

I have a classA with some public methods (used by other composite classes), but I don't want those methods get overide in classB when classB extends classA.

is that possible? maybe I need to re-design, if so, how?

many thanks
tony
+Pie Number of slices to send: Send
If a method is declared final, it can't be overridden.
Look! It's Leonardo da Vinci! And he brought a tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1755 times.
Similar Threads
Inheritance
Scope and classes/methods
Initialization
Object is null
The java.lang.Object class
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 18, 2024 21:02:59.