Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Country Information Management Challenge | Classes Advanced
Java Extended
course content

Course Content

Java Extended

Java Extended

1. Deep Java Structure
2. Methods
3. String Advanced
4. Classes
5. Classes Advanced

bookCountry Information Management Challenge

Task

Your task is to create a Country class. It should have fields: name, population, and continent on which the country is located. All fields in this class should have a private access modifier. You should also write getters and setters for each field in this class. The main method is already prepared, your task is to implement the Country class:

Note

This is a complex and challenging task, so if you haven't made progress in solving it within ≈15 minutes, feel free to click on the Hint button or analyze the Solution!

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 5. Chapter 6
toggle bottom row

bookCountry Information Management Challenge

Task

Your task is to create a Country class. It should have fields: name, population, and continent on which the country is located. All fields in this class should have a private access modifier. You should also write getters and setters for each field in this class. The main method is already prepared, your task is to implement the Country class:

Note

This is a complex and challenging task, so if you haven't made progress in solving it within ≈15 minutes, feel free to click on the Hint button or analyze the Solution!

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 5. Chapter 6
toggle bottom row

bookCountry Information Management Challenge

Task

Your task is to create a Country class. It should have fields: name, population, and continent on which the country is located. All fields in this class should have a private access modifier. You should also write getters and setters for each field in this class. The main method is already prepared, your task is to implement the Country class:

Note

This is a complex and challenging task, so if you haven't made progress in solving it within ≈15 minutes, feel free to click on the Hint button or analyze the Solution!

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Task

Your task is to create a Country class. It should have fields: name, population, and continent on which the country is located. All fields in this class should have a private access modifier. You should also write getters and setters for each field in this class. The main method is already prepared, your task is to implement the Country class:

Note

This is a complex and challenging task, so if you haven't made progress in solving it within ≈15 minutes, feel free to click on the Hint button or analyze the Solution!

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Section 5. Chapter 6
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
some-alt