001package types.point1;
002import java.awt.Color;
003final class CartesianPoint {
004        private final double x;
005        private final double y;
006        private final Color color;
007        public CartesianPoint(double x, double y, Color color) {
008                this.x = x;
009                this.y = y;
010                this.color = color;
011        }
012        public double getX() { return x; }
013        public double getY() { return y; }
014        public Color getColor() {
015                System.out.println("It's Cartesian!");
016                return color;
017        }
018}
019public class Main {
020        private Main() {}
021        public static void main(String[] args) {
022                CartesianPoint p1 = new CartesianPoint(0,0,Color.RED);
023                CartesianPoint q1 = new CartesianPoint(1,1,Color.BLUE);
024        }
025}