package Exam;

class Computer {
    String brand;
    String model;
    int price;

    // 1️⃣ 기본 생성자
    Computer() {
        this("Unknown", "Unknown", 0);
    }

    // 2️⃣ 브랜드/모델 생성자
    Computer(String brand, String model) {
        this(brand, model, 0);
    }

    // 3️⃣ 전체 정보 생성자
    Computer(String brand, String model, int price) {
        this.brand = brand;
        this.model = model;
        this.price = price;
    }

    void printInfo() {
        System.out.println("브랜드: " + brand + ", 모델: " + model + ", 가격: " + price);
    }
}

public class C5_Pro05_Main {
    public static void main(String[] args) {
        Computer computer1 = new Computer();
        Computer computer2 = new Computer("Samsung", "Galaxy Book");
        Computer computer3 = new Computer("Apple", "MacBook Pro", 2500000);

        computer1.printInfo();
        computer2.printInfo();
        computer3.printInfo();
    }
}
