Java - Polymorphism
Given these classes:
class Appliance { void powerOn() { System.out.println("Appliance powered on"); } }
class WashingMachine extends Appliance { void powerOn() { System.out.println("Washing machine powered on"); } void startWash() { System.out.println("Washing started"); } }How can you invoke startWash() on an Appliance reference that actually points to a WashingMachine object?