Student System model

Your task

You can find today’s task with its short description here. Your goal is to provide full implementation of Student/Staff model for students' system and play with it in Main to see how extending and overriding in Java really works.

Extra notes

  1. You don’t have to create a PersonFactory class (but you may)
  2. You should add enumerate following Person with next numbers - as we’ve discussed you can do it with
    private static int personIndex = 0;
    

    located in your Person class and using it in constructor of any Person

Previous
Next