A simple Python OOP mini-system that demonstrates Encapsulation, Inheritance, Abstraction, and Composition across Students, Courses, Employees, Faculties, and Campus.
student.py
– Student entity (private attributes, course assignment, marks, average)course.py
– AbstractCourse
+ concreteDegree
,Diploma
,Certificate
(different average logic)employee.py
– AbstractEmployee
+Academic
(hourly) andNonAcademic
(base + commission)faculty.py
– Holds students, courses, employeescampus.py
– Holds facultiesfindaverage.py
– Creates campus/faculty/courses/students and prints averagesfindSalary.py
– Creates campus/faculty/employees and prints salaries
python findaverage.py
python findSalary.py