Hi, I am completing a beginners c# course and i'm stuck on this question - this section of the course is about polymorphism and inhertiance.
The code was already written, I have added an 'ALevelComputerStudent' class, and now I must add functionality to pick which type of student is created. I'm not sure how to do this.
I've tried using an interface, but then when I use an interface for 'ALevelComputerStudent' + 'GCSEStudent' classes, i can no longer call methods from the base class. I know there are other ways of doing it , but for the purpose of the question I have one base class which the rest add onto
I just cant get my head around when to use inheritance and interfaces without changing all of the existing code written around the 'AStudent' object any help/ explanation would be appreciated