I want to ask if a class can inherit from one class or other class. For example, I have a class named "Shareholder". Now, a Shareholder can be either a NaturalPerson or a LegalPerson.
I have the 2 classes (NaturalPerson and LegalPerson), but am I able to select one of them in order for a specific Shareholder object to inherit from one of them ?
Thank you