Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Define a class called Country. A Country has populationSize, area, capital, currency, and a unique abbreviation ( The first 3 letters from the country name

Define a class called Country. A Country has populationSize, area, capital, currency, and a unique abbreviation (The first 3 letters from the country name). Define at least two constructors, at least two getter methods, at least two setter methods, and override the tostring() method and the equals() method. The equals() method must return true if the two countries have the same name and same area and false otherwise.
Write a main method, define an a rray of country objects. You can not add a country whose abbreviation is similar to an already existing country.
Display countries whose area is greater than 10000 square Km.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual Basic6 Database Programming

Authors: John W. Fronckowiak, David J. Helda

1st Edition

ISBN: 0764532545, 978-0764532542

More Books

Students also viewed these Databases questions