Let's assume I have this class:
public class Person {
private int age;
public int getAge() {
return age;
}
}
I have 4 classes that extend Person. These classes don't have any attributes in common, except age, which is inherited from Person.
Is there any disadvantage of using inheritance, except for the different architecture or understandability?