Q:
Answer
Final method is a method defined in the super class with final modifier.
We cannot overriding final method of super class in the sub class.
EX:
Class Sample {
final void funOne() {
}
void funTwo() {
}
}
Class Sub extends Sample {
void funOne() { // overriding is not allowed
}
viod funTwo() { //overriding is allowed
}
}
View answer
Workspace
Report Error
Discuss