You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write python classes to represent different species of animals
We should have an animal base class with four children classes. All animals should be able to move, eat, and sleep with functions. All plants should be able to photosynthesise and grow. These functions can just print a message
Each animal should have a weight, and you should override the adding method and the equals method so that their weight is combine, and that equal returns true if the animals are the same weight
The text was updated successfully, but these errors were encountered:
Write python classes to represent different species of animals
We should have an
animal
base class with four children classes. All animals should be able to move, eat, and sleep with functions. All plants should be able to photosynthesise and grow. These functions can just print a messageEach animal should have a weight, and you should override the adding method and the equals method so that their weight is combine, and that equal returns true if the animals are the same weight
The text was updated successfully, but these errors were encountered: