Question: First, in notebook below, do the following: Create a new Class, and two derived classes that inherit from this base Class (These could be classes
First, in notebook below, do the following:
- Create a new Class, and two derived classes that inherit from this base Class (These could be classes you've created previously)
- This could be, for example, base classAnimaland derived classesCatandDog
- Make sure there is at least one method in the class that prints something out
- Write two new functions, that do something with instances of your new classes
- For example, take a list of custom objects, and call a method on each one
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
