public static void main(String[] args) { // Cat nyan = new Animal("Nyan Cat", 5); // // Animal a = new Cat("Olivia Benson", 3); // a = new Dog("Fido", 7); // System.out.println(a.greet()); // a.playFetch(); // // Dog d1 = a; // Dog d2 = (Dog) a; // d2.playFetch(); // (Dog) a.playFetch(); // // Animal imposter = new Cat("Pedro", 12); // Dog fakeDog = (Dog) imposter; // // Cat failImposter = new Cat("Jimmy", 21); // Dog failDog = (Dog) failImposter; }