![]() ![]() |
| |||||||||
| ||||||||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
public class Dog extends Animal{
public Dog(){
super();
}In this case, our Dog constructor will only call the superclass' constructor. In the case, where you wish to invoke the superclass' method, bite() for instance, then you would do super.bite() but it isn't necessary to include the super unless the child class overrides the bite method. Dawn Finney