Closed Wincenttjoi closed 3 years ago
It is shown here that lecturer tutor and student inherits Person class. Would it be better if Person class is connected to the facade Data interface rather than its children? The Person class seems to be redundant in this case.
That might work too, if the Data
class doesn't need to differentiate between the three types. Note that the Person
class can still contain the common functionality, which justifies its existence even if not used by others.
perhaps it's done this way to signify that data has a list of students, list of tutors, etc, instead of just a list of persons
It is shown here that lecturer tutor and student inherits Person class. Would it be better if Person class is connected to the facade Data interface rather than its children? The Person class seems to be redundant in this case.