News

Animal dogWithAnimalType = new Dog(); Dog specificDog = ... See the Java inheritance tutorial for a complete introduction to using the extends keyword and Object superclass in Java programs.