/* 5-1
import java.util.*;
class Point {
private int x, y;
public void set(int x, int y) {
this.x=x;
this.y=y;
}
public void showPoint() {
System.out.println("("+x+", "+y+")");
}
}
class ColorPoint extends Point {
private String color;
public void setColor(String color) {
this.color=color;
}
public void showColorPoint() {
System.out.print(color);
showPoint();
}
}
public class Main {
public static void main(String[] args) {
Point p=new Point();
p.set(1, 2);
p.showPoint();
ColorPoint cp=new ColorPoint();
cp.set(3, 4);
cp.setColor("red");
cp.showColorPoint();
}
}
*/
/* 5-2
import java.util.*;
class Person {
private int weight;
int age;
protected int height;
public String name;
public void setWeight(int Weight) {
this.weight=weight;
}
public int getWeight() {
return weight;
}
}
class Student extends Person {
public void set() {
age=30;
name="홍길동";
height=175;
setWeight(99);
}
}
public class Main {
public static void main(String[] args) {
Student s=new Student();
s.set();
}
}
*/
import java.util.*;
class TV {
private int size;
public TV(int size) {
this.size=size;
}
protected int getSize() {
return size;
}
}
class ColorTV extends TV {
public void printProperty(int s, int c) {
System.out.println();
}
}
public class Main {
public static void main(String[] args) {
ColorTV myTV=new ColorTV(32, 1024);
myTV.printProperty();
}
}