Advertisement
Ricarte

Ponto

Feb 5th, 2023
1,028
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.37 KB | None | 0 0
  1. public class Ponto {
  2.  
  3.     private int x;
  4.     private int y;
  5.  
  6.     public int getX() {
  7.         return x;
  8.     }
  9.  
  10.     public void setX(int x) {
  11.         this.x = x;
  12.     }
  13.  
  14.     public int getY() {
  15.         return y;
  16.     }
  17.  
  18.     public void setY(int y) {
  19.         this.y = y;
  20.     }
  21.  
  22.     public Ponto(int a, int b){
  23.         this.x = a;
  24.         this.y = b;
  25.     }
  26. }
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement