- This event has passed.
5:00 PM – Python Object Oriented Programming – Shawn
June 16, 2023 @ 5:00 pm - 6:00 pm
Today We Did
- Create new class called Staff
- Reviewed the difference between attributes and parameters
- Added staff methods
- In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
- Add new files to SchoolSystem folder with the following content
- Homework:
a) Create Classroom class which contains attributes class_name, class_type, class_size
b) Create add_classroom() method to SchoolSystem class which makes an instance of our new Classroom class (make an object), and saves that object into a new classroom_dictionary (same thing we’ve been doing for our previous add_something() methods).
c) Create list_classrooms() method to SchoolSystem class which prints all attributes of all Classroom objects in our classroom_dictionary (same as previous list_something() methods).