American Young Coder Academy – Indo

Loading Events

« All Events

  • This event has passed.

5:00 PM – Python Object Oriented Programming – Shawn

June 16, 2023 @ 5:00 pm - 6:00 pm

Today We Did
  1. Create new class called Staff
  2. Reviewed the difference between attributes and parameters
  3. Added staff methods
  4. In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
  1. Add new files to SchoolSystem folder with the following content
  2. 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). 

Details

Date:
June 16, 2023
Time:
5:00 pm - 6:00 pm
Event Categories:
,
Verified by MonsterInsights