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.