Question: one java question will leave a like If you wanted to create a class of Animals, you could use the following base class: Which selection


If you wanted to create a class of Animals, you could use the following base class: Which selection would create a subclass of Bird with a constructor that receives the number of wings and sets the legs to 2 rather than require user input? pub1ic class Animal extends Bird f private int noofwings; pub1ic Bird(int legs, String name, int wings) \& super(legs, name); this.noonwingstwings; \} pub1ic class Bird extends Animal f private int noofuings; public Bird(String name, int wings) \{ super(2, name); this. nooflings wings; 3 3 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
