Consider these classes:
class Parent { int a; } class Child extends Parent { int a; // error? }
Should the declaration of a
a
Its a little bit like marrying your cousin; Legal, but not advised.
It can lead to all kinds of confusing behaviour, as the subclass declaration hides the parent class declaration.