(Overloading) 팩토 ¶
- - C++ cin cin.get(), cin.get(ch), cin.get(ch,50) 함 한 할 하 함 .
~cpp
public Circle(int xValue, int yValue, int width, int height) {
middlePoint = new Point(xValue, yValue);
this.width = width;
this.height = height;
}
public Circle(int xValue, int yValue, int r){
middlePoint = new Point(xValue, yValue);
this.width = r;
this.height = r;
}
- Point(int xValue, int yValue) -> 편하 했.
| & Pair | |










