“class B extends class A. In the code for class B, if you see a method with same name as method in A. Is this allowed?”
yes.I think this overriding.This may also be polymorphism.
The goto resource for studying materials
“class B extends class A. In the code for class B, if you see a method with same name as method in A. Is this allowed?”
yes.I think this overriding.This may also be polymorphism.