로딩(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 | |










