Question: Programming: class inheritance We have a class called HomeAppliance. WashingMachine class inherits from HomeAppliance. Both classes have a method called turnOn. Both methods have the
Programming: class inheritance
We have a class called HomeAppliance. WashingMachine class inherits from HomeAppliance. Both classes have a method called turnOn. Both methods have the same signature and print a statement. HomeAppliance method prints: Entrance is opened, while WashingMachine method prints: Washing is started. If we define an object as HomeAppliance appliance = WashingMachine (). Then, we call turnOn on that object, what statement will be printed?
Options:

Entrance is opened Washing is started Entrance is opened will be printed first then Washing is started Washing is started will be printed first then Entrance is opened
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
