“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?”

Average Rating
0 out of 5 stars. 0 votes.

“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.