Let's say I have a method run in my class A
class A {
void run(){
}
}
and I have another class B which is going to extend class A.
class B extends A {
void run() {
}
}
I want to restrict run method only upto class B. No further overriding should be allowed. is this possible ?