0
Can I inherit final methods in subclass?
6 Respostas
0
yes
0
Give me an example 😄
0
public class ShapeClass {
final void setShape() {
System.out.println("I am Inherited");;
}
public static void main(String[] args) {
Circle c1 = new Circle();
c1.setShape();
}
}
class Circle extends ShapeClass {
}
0
I thought you meant overriding the method, but nevermind, why asking a question if you already know the answer? 😐
0
it's ok
- 1
No.