Dom Pearson wrote:Hello everyone! I am a bit confused about when to use abstract classes vs interfaces. For example, if I need to create a system for education with students and teachers what would be the best way to go about it?
I need to create a system for education with students and teachers
Dom Pearson wrote:Should I create a person interface, abstract class for teachers (to be able to create teachers for different subjects) and then a simple class for student?
Or should I make a person an abstract class and teacher interface and then create different teachers? What would be the best way to implement this example if I explicitly need to be able to create multiple teachers? I am quite confused of when to use which.
Liutauras Vilda wrote:
That's not enough to start coding. You need more than that. ... What else system needs to do?
Dom Pearson wrote:It is just a simple project that I want to write for myself. Basically it's just a student and teacher. The teacher has to have information about the student and the student should have information of his subjects. The program also needs to be able to create multiple teachers.