class Animal { String type ="Canine"; int maxSpeed = 60; Animal() {} Animal(String type, int maxSpeed) { this.type = type; this.maxSpeed = maxSpeed; } } class WildAnimal extends Animal { String bounds; WildAnimal(String bounds) { // line n1 } WildAnimal(String type, int maxSpeed, String bounds) { // line n2 } } //And given the code fragment: 7. WildAnimal wolf = new WildAnimal ("Long"); 8. WildAnimal tiger = new WildAnimal ("Feline", 80, "Short"); 9. System.out.println (wolf.type + " " + wolf.maxSpeed + " " +wolf.bounds); 10. System.out.println (tiger.type + " " + tiger.maxSpeed + " "+ tiger.bounds);
Canine 60 Long Feline 80 Short
super () ; this.bounds = bounds;
this.bounds = bounds; super();
super (type, maxSpeed); this (bounds);
this ("Canine", 60) ; this.bounds = bounds
super (type, maxSpeed);this.bounds = bounds;