What if a method M in class A also appears in class B?
class A { public void M(){} } class B: A{ public void M(){} }