Reinforce your Python OOP inheritance knowledge with review questions designed to test your grasp of single, multiple, and multilevel inheritance. Ideal for students and beginners.
Build a simple School Management System that models students, teachers, courses, and departments using Python classes and various types of inheritance.
Person
β with attributes like name
, age
, and gender
.Student(Person)
β add attributes like student_id
, grade
, courses_enrolled
.Teacher(Person)
β add attributes like teacher_id
, subjects_taught
.GraduateStudent(Student)
β add attributes like thesis_title
, advisor_name
.AdminStaff(Person)
Coordinator(Student, AdminStaff)
β someone who is both a student and staff member.Course
β related to both Student
and Teacher
.__str__
or custom methods).super()
usage