728x90 java room of house1 [Java Examples] Rectangle.java를 활용해서 집 크기 구하기 예제코드 및 설명 Rectangle.java를 활용해서 집 크기 구하기 예제코드 및 설명 포스트 난이도: HOO_Junior # Example Code public class Immutable_Rectangle { //Fields of the class rectangle final private double length; final private double width; //Getter methods(Accessor methods) public double getLength() { return length; } public double getWidth() { return width; } public double getArea() { return width * length; } //Constructor public Immu.. 2024. 3. 4. 이전 1 다음 728x90