//import java.util.*;
//class TV {
// private int size;
// public TV (int size) {
// this.size = size;
// }protected int getSize() {
// return size;
// }
//}
//class ColorTV extends TV {
// int color;
// public ColorTV (int size,int color) {
// super(size);
// this.color = color;
// }
// public void printProperty() {
// System.out.println(getSize()+"인치 "+color+"컬러");
// }
//}
//class Main {
// public static void main(String[] args) {
// ColorTV myTV = new ColorTV(32,1024);
// myTV.printProperty();
// }
//}
//import java.util.*;
//class TV {
// private int size;
// public TV (int size) {
// this.size = size;
// }protected int getSize() {
// return size;
// }
//}
//class ColorTV extends TV {
// int color;
// public ColorTV (int size,int color) {
// super(size);
// this.color = color;
// }
//// public void printProperty() {
//// System.out.println(getSize()+"인치 "+color+"컬러");
//// }
//}
//class IPTV extends ColorTV{
// String ip;
// public IPTV (String ip,int size, int color) {
// super(size,color);
// this.ip = ip;
// }
// public void printProperty() {
// System.out.println("나의 IPTV는 "+ip+" 주소의 "+getSize()+"인치 "+color+"컬러");
// }
//}
//class Main {
// public static void main(String[] args) {
// IPTV iptv = new IPTV("192.1.1.2",32,2048);
// iptv.printProperty();
// }
//}
//import java.util.*;
//abstract class Converter {
// abstract protected double convert(double src);
// abstract protected String getSrcString();
// abstract protected String getDestString();
// protected double ratio;
//
// public void run() {
// Scanner sc = new Scanner(System.in);
// System.out.println(getSrcString()+"을 "+getDestString()+"로 바꿉니다.");
// System.out.println(getSrcString()+"을 입력하세요>>"); //val을 입력, val은 바꿀 원화금액
// double val = sc.nextDouble();
// double res = convert(val);
// System.out.println("변환 결과: "+res+getDestString()+"입니다"); //res는 변환 결과로 달러
// sc.close();
// }
//}
//
//class Won2Dollar extends Converter {
// double val;
// public double convert(double src) {
// return src/val;
// }
// public String getSrcString() {
// return "원";
// }
// public String getDestString() {
// return "달러";
// }
// Won2Dollar(double val) {
// this.val=val;
// }
//}
//class Main {
// public static void main(String[] args) {
// Won2Dollar toDollar = new Won2Dollar(1200);
// toDollar.run();
// }
//}
//import java.util.*;
//abstract class Converter {
// abstract protected double convert(double src);
// abstract protected String getSrcString();
// abstract protected String getDestString();
// protected double ratio;
//
// public void run() {
// Scanner sc = new Scanner(System.in);
// System.out.println(getSrcString()+"을 "+getDestString()+"로 바꿉니다.");
// System.out.println(getSrcString()+"을 입력하세요>>"); //val을 입력, val은 바꿀 원화금액
// double val = sc.nextDouble();
// double res = convert(val);
// System.out.println("변환 결과: "+res+getDestString()+"입니다"); //res는 변환 결과로 달러
// sc.close();
// }
//}
//
//class Km2Mile extends Converter {
// double val;
// public double convert(double src) {
// return src/val;
// }
// public String getSrcString() {
// return "Km";
// }
// public String getDestString() {
// return "Mile";
// }
// Km2Mile(double val) {
// this.val=val;
// }
//}
//class Main {
// public static void main(String[] args) {
// Km2Mile toMile = new Km2Mile(1.6);
// toMile.run();
// }
//}
//class Point {
// private int x,y;
// public Point(int x,int y) {
// this.x=x;
// this.y=y;
// }
// public int getX() {return x;}
// public 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,String color){
// super(x,y);
// this.color=color;
// }
// public void setXY(int x,int y) {
// move(x,y);
// }
// public void setColor(String color) {
// this.color = color;
// }
// public String toString() {
// return (color+"색의 ("+getX()+","+getY()+")의 점");
// }
//}
//class Main {
// public static void main(String[] args) {
// ColorPoint cp = new ColorPoint (5,5,"YELLOW");
// cp.setXY(10,20);
// cp.setColor("RED");
// String str = cp.toString();
// System.out.println(str+"입니다.");
// }
//}
/*===================================*/
//class ColorPoint extends Point {
// String color;
// public ColorPoint (int x,int y) {
// super(x,y);
// color="BLACK";
// }
// public ColorPoint() {
// super(0,0);
// color="BLACK";
// }
// public void setXY(int x,int y) {
// move(x,y);
// }
// public 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 Point3D extends Point {
// int z;
// public Point3D (int x,int y,int z) {
// super(x,y);
// this.z=z;
// }
// public void moveup() {
// z+=1;
// }
// public void movedown() {
// z-=1;
// }
// public void move(int x, int y,int z) {
// 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 PositivePoint extends Point{
//
// PositivePoint() {
// super(0,0);
// }
// PositivePoint (int x,int y) {
// super(x,y);
// if(x<0 || y<0) super.move(0,0);
// }
// public void move(int x,int y) {
// if (x>0&&y>0) {
// super.move(x,y);
// }
//// else {
//// System.out.println("이동하지 못했습니다");
//// }
// }
// 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(p2.toString()+"입니다.");
// }
//}



