public class PolyTest {
	public void run(){
Cat somecat;
Bird somebird;
Animal someanimal;

//Let us first create a cat and a bird
somecat = new Cat("Siamese", 15, "Grey", "Raju", "White");
somebird = new Bird("Eagle",100,"White",15.5,70.76);
//Let us now assign the object of type Cat to the
//variable someanimal (which is of type Animal)
someanimal = somecat;
someanimal.display();
((Cat)someanimal).motion();
//Let us now assign the object of type Bird to the 
//variable someanimal (which is of type Animal)
someanimal = somebird;
someanimal.display();
((Bird)someanimal).motion();
	}
      public static void main(String args[])
      {
      	PolyTest myApp = new PolyTest();
		myApp.run();
}
}


