Classes

  • Create a class Student with the following members:
    • id – int 
    • name – string
    • city – string
    • __init__
    • Functions for get/set members
    • __str__ (convert to string)
  • Create a class UStudent derived from Student and add the folowing members:
    • points – int
    • status – int 
    • set/get
    • __str__
  • Create a class GStudent derived from Student and add the following:
    • project – string
    • supervisor- string
    • get/set
    • __str__
  • Create a class StudentList and add:
    • list of students
    • add method (check for student type and raise exception)
    • remove method (by id)
    • printall method
    • __getitem__
    • __setitem__
    • __iter__
  • Create a script to test all