Morning
If I have a parent class that stores generic personal data, and two child classes called Employee and Student. The parent class doesn't have any methods because the person is added either via the Employee or Student class, the parent class is there so that data is not repeated, should the parent class just be an interface and let the child classes inherit the interface, and should the parent class be a class / interface if it does not actually contain any methods, or is my structure incorrect.
Have a great day everyone
If I have a parent class that stores generic personal data, and two child classes called Employee and Student. The parent class doesn't have any methods because the person is added either via the Employee or Student class, the parent class is there so that data is not repeated, should the parent class just be an interface and let the child classes inherit the interface, and should the parent class be a class / interface if it does not actually contain any methods, or is my structure incorrect.
Have a great day everyone