Michael Grünau wrote:I looked for a few possible ways on different websites and tried to adapt some ideas into my program, but I am quite lost and don't know where to continue or what I need to change.
Junilu Lacar wrote:It's all about context though. As long as there's enough to reasonably inform whoever comes into the code without prior knowledge or experience what the abbreviation means, then I'd say abbreviations are fine. I wouldn't go overboard though.
Junilu Lacar wrote:If a shorter name expresses the idea just as well, prefer the shorter name.
Junilu Lacar wrote:Still not as good as a lookup table (the method Campbell showed earlier)
error: incompatible types: String cannot be converted to int
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.