Question: Create a class named Continents. Create 6 subclasses, Asia, Europe, Africa, North America, South America, and Australia. Create 2 different subclass variables for each subclass.
Create a class named Continents. Create 6 subclasses, Asia, Europe, Africa, North America, South America, and Australia. Create 2 different subclass variables for each subclass. In the Continents class, you will have a variable that will take user input as an integer. In the Continents class, you+ will have a method that will compare this integer value to the size of each continent. This method will display the continent name according to the input size. In java* Create an object for each of the 6 subclasses and 1 superclass of problem above. Utilize these objects to display the name of the continents. Note: The size of the continent can be arbitrary
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
