Created
March 13, 2025 19:32
-
-
Save trikitrok/2619d603db372f71df2e905f5f96d184 to your computer and use it in GitHub Desktop.
This file contains 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
public class Coordinates { | |
public int x; | |
public int y; | |
public Coordinates(int x, int y) { | |
this.x = x; | |
this.y = y; | |
} | |
} | |
//---------------------------------------------------------------------------------- | |
//---------------------------------------------------------------------------------- | |
//---------------------------------------------------------------------------------- | |
public class Child { | |
private int age; | |
public Child(int age) { | |
this.age = age; | |
} | |
public int getAge() { | |
return age; | |
} | |
public void setAge(int age) { | |
this.age = age; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment