Advertisement
Lusien_Lashans

Laba 2 Point

Apr 30th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.55 KB | None | 0 0
  1. package com.company;
  2.  
  3. public class Point {
  4.     private int x;
  5.     private int y;
  6.     private boolean signification;
  7.     private boolean visitation = false;
  8.  
  9.     public  Point(int X, int Y){ x = X; y = Y; }
  10.  
  11.     public void setSignification(boolean flag) { signification = flag; }
  12.     public void setVisitation(boolean flag){    visitation = flag;  }
  13.  
  14.  
  15.  
  16.     public boolean getSignification() { return signification; }
  17.     public boolean getVisitation(){return visitation;}
  18.     public int getX(){ return x; }
  19.     public int getY(){ return y; }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement