= 8.75-0.5 Read the forthcoming tabulate definitions, and then exculpation the questions that follow: national enum idea0fDiet f > CARNIVORE, HERBIVORE OMNIVORE national interface Pet f national String who0wnsMeO; national String whatIsMyName); national vacant changeSpectry (String newName); national tabulate mammal armed boolean hasATail; national int numOfLegs; national idea0fDiet eats; national mammal(boolean subject, int legs, ideaOfDiet eats)f hasASubject subject; nunOfLegs = legs; this.eats = eats; drift java.util.Scanner; national tabulate Dog extends mammal ( national boolean hasAnOwner; peculiar String ownerName; peculiar String spectry; peculiar String foster; national Dog(String foster, boolean subject, int legs, ideaOfDiet eats, boolea hasAnOwner, String spectry, String ownerName) super(tail, legs, eats); this.foster = foster; this. hasAnOwner hasAnOwner;
6) Mammal and dog twain are kindred by inheritance
Here the tabulate dog extending the states and behaviours of mammal.
7) national String whoOwnsMe() ;
national String whatIsMyName() ;
national vacant changeName(String newName) ;
8) That technique is indicated originator overloading. As crave as originator attestation referable identical we can designate multiple originators
This technique is public as Originator overloading, Means identical discharge spectry with diff arguments catalogue.
9) Mammal downloki=(mammal)loki
For loki from dog to mammal idea casting won’t be possible