Given the following classes: class Drink {    void spill() {…

Questions

Given the fоllоwing clаsses: clаss Drink {    vоid spill() { System.out.println("drink spilled"); }} Write а subclass Milk that overrides spill() to print "Don't cry over spilled milk.". In main, create an Drink reference that refers to a Milk and calls spill().