Question: #Please Answer in Python codeblock. Thanks Create a class called Organism. The organism class should take in the kingdom and the weight of the organism.

#Please Answer in Python codeblock. Thanks

Create a class called Organism. The organism class should take in the kingdom and the weight of the organism. It should have an init, weight and str method. Now create a class dog that inherits from Organism. The dog class should take kingdom, weight, name, species and color. Finally, create a class Plant that inherits from Organism. It should take as input kingdom, weight, species and color. Dog and Plant should have methods to return the values as a string (str) and method to return species, color, etc.

# your code here

# set the following instances Missy = Dog('animalia', 55, 'Missy','German Shorthair','brown') Iris = Plant('plantae',5,'Iris','white') print(Missy) print(Iris) print(Missy.weight) print(Iris.color)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!