American Young Coder Academy – Indo

Loading Events

« All Events

  • This event has passed.

5:00 PM – Python Object Oriented Programming – Sebastian

May 30, 2023 @ 5:00 pm - 6:00 pm

Today We Did
  1. Understood more about objects and how we should store them in our dictionaries
  2. Finished the remaining methods for library system
  3. Understood why it would be better for some objects to have a .get_info() method
  4. In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
  1. Name your homework MAY30_inheritance_hw, please submit by next Monday.
  2. Homework: Just a quick fun quiz to review the inheritance topics we covered in class. Don’t worry too much about it if you can’t figure it out, since I’ll review it during class next week.

    Please submit your answers in a text file, so it would be called “MAY30_inheritance_hw.txt”, or in a Python file inside a multi-line comment called “MAY30_inheritance_hw.py”.

    a) What 2 things are passed down to children from the parent during inheritance?

    b) If I had a class called Shape and another class called Rectangle, what would I add to the Rectangle class to make it inherit Shape? (how would I modify “class Rectangle”?)

    c) This question has no wrong answer, but I want to start sparking your creativity with how we can use this new concept of inheritance.

    What kind of situation in programming might we need to use inheritance? Think of a situation in which inheriting another class would be more useful than any of the other tools we’ve learned about so far.

Details

Date:
May 30, 2023
Time:
5:00 pm - 6:00 pm
Event Categories:
,
Verified by MonsterInsights