Created
September 21, 2022 12:41
-
-
Save anta40/ee96ff7e78db2bba88765b108a32ac06 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.anta40.app.countrycruddemo; | |
public class Country { | |
private int id; | |
private String name; | |
private int population; | |
public Country(int id, String name, int population){ | |
this.id = id; | |
this.name = name; | |
this.population = population; | |
} | |
public int getId() { return id; } | |
public String getName() { return name; } | |
public int getPopulation() { return population; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment