Question: JAVA , THANK YOU. please read yellow highlight. WORK AREA Assume that the following classes have been created. Do not write any import statements A

JAVA , THANK YOU. please read yellow highlight.

 JAVA , THANK YOU. please read yellow highlight. WORK AREA Assume

WORK AREA Assume that the following classes have been created. Do not write any import statements A class named Bird and a sub-class named FlightlessBird The Bird class has a String attribute called name, and another String attribute called countryOfOrigin. These are all set by the constru ctor in that order The FlightlessBird class inherits all the attributes from the Bird class. It also has a boolean attribute called endangered These are all set by the constructor by making use of a call to the super class constructor of the Bird class, The constructor of the FlightlessBird class is responsible for setting its own class variable endangered . This has all been done for you. You do not need to create the classes listed above What you need to do: 1.) Declare and instantiate and array named birds that is capable of holding both types of objects: Bird and FlightlessBird 2.) The array should be able to hold a maximum of 2 objects 3.) Declare and instantiate an Bird object named griffon with the following paramete Name"Griffon" . Country of Origin"Israel" 4.) Declare and instantiate a FlightlessBird object named ostrich with the following parameters . Manufacterer"Ostrich" Model Number = "Israel'. Endangered true . 5) Assign the griffon to the first position in the array 6.) Assign the ostrich to the second position in the array

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!