Question: Create a Plumber class and a Roomba class. You might want to look at a Goomba... An instance of Plumber should be able to squash


Create a Plumber class and a Roomba class. You might want to look at a Goomba... An instance of Plumber should be able to squash the Roomba. The Roomba class'should have an attribute name and an instance method called squish(). It should also have a non-public attribute _squashed which should be set to False when the instance is created (i.e. in the __init__() method). Invoking the method squish() should set _squashed to True, You should also override the _._str__() method so that it prints out Hi. ny name ts MAME and I an feeling fine or Hi ny name is NAME and I an squashed depending on the value of _squashed. hetti = Roomba( "Hetti") print(hetti) \# Hi my name is Hetti and I am feeling fine hetti.squish() print(hetti) \# Hi my name is Hetti and I an squashed The Plunber class should have a name and an instance method called squash(). The Plumber class should have a name and an instance method called squash(). The squash() method for the Plumber class should accept a Roonba as a parameter. squash() should then invoke (call) the Roonba 's instance method squish(). Here is an example of how the two classes should work. Which would output the following to the console
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
