+ 1
Methods cannot be inherited
When can we say that methods cannot be inherited?
3 ответов
+ 1
when class is declared final it cannot be inherited.
The methods declared as private in a public or protected class, cannot be inherited.
Constructors cannot inherited.
Final methods cannot be overridden.
Static methods cannot be overridden, but can be redeclared in a sub class.
+ 2
If you declare methods as final then you are not able to override that methods
0
Thanks for replay