//class Point {
// private int x, y;
// Point(int x, int y) {
// this.x = x;
// this.y = y;
// }
// int getX() {
// return x;
// }
// int getY() {
// return y;
// }
// protected void move(int x, int y) {
// this.x = x;
// this.y = y;
// }
//}
//class ColorPoint extends Point{
// String color;
// ColorPoint(int x, int y){
// super(x,y);
// }
// public ColorPoint() {
//
// }
// void setXY(int x, int y){
// move(x,y);
// }
// void setColor(String color){
// this.color=color;
//}
// public String toString(){
// return color+"색의 ("+getX()+","+getY()+")의 점";
// }
//}
//class Main {
// public static void main(String[] args) {
// ColorPoint zeroPoint=new ColorPoint();
// System.out.println(zeroPoint.toString()+"입니다.");
//
// ColorPoint cp=new ColorPoint(10,10);
// cp.setXY(5,5);
// cp.setColor("RED");
// System.out.println(cp.toString()+"입니다.");
// }
//}
//
//class Point {
// private int x, y;
// Point(int x, int y) {
// this.x = x;
// this.y = y;
// }
// int getX() {
// return x;
// }
// int getY() {
// return y;
// }
// protected void move(int x, int y) {
// this.x = x;
// this.y = y;
// }
//}
//class Point3D extends Point{
// int z;
//
// Point3D(int x, int y, int z){
// super(x,y);
// this.z=z;
// }
// void moveUp(){
// z=z+1;
// }
// z=z-1;
// }
// void move(int x, int y, int z) {
// move(x,y);
// this.z=z;
// }
// public String toString() {
// return "("+getX()+","+getY()+","+z+")"+"의 점";
// }
//}
//class Main{
// public static void main(String[] args) {
// Point3D p= new Point3D(1,2,3);
// System.out.println(p.toString()+"입니다.");
//
// p.moveUp();
// System.out.println(p.toString()+"입니다.");
//
// p.moveDown();
// p.move(10,10);
// System.out.println(p.toString()+"입니다.");
//
// p.move(100,200,300);
// System.out.println(p.toString()+"입니다.");
// }
//}
//
//class Point {
// private int x, y;
// Point(int x, int y) {
// this.x = x;
// this.y = y;
// }
// int getX() {
// return x;
// }
// int getY() {
// return y;
// }
// protected void move(int x, int y) {
// this.x = x;
// this.y = y;
// }
//}
//class PositivePoint extends Point{
// PositivePoint(){
//
// }
// PositivePoint(int x, int y){
// if(x>0 && y>0)
// super(x,y);
// else
//
// }
// public String toString() {
// return "("+getX()+","+getY()+")"+"의 점";
// }
//}
//class Main{
// public static void main(String[] args) {
// PositivePoint p = new PositivePoint();
// p.move(10, 10);
// System.out.println(p.toString()+"입니다.");
//
// p.move(-5, 5);
// System.out.println(p.toString()+"입니다.");
//
// PositivePoint p2=new PositivePoint(-10,-10);
// System.out.println(p.toString()+"입니다.");
// }
//}



