程式碼(Source Code)

bluej

Phone

class Phone {
    String name;
    int price;

    Screen screen;
    Processor processor;
    Memory memory;
    Camera camera;
}

Screen

class Screen {
    double inch;
    int width;
    int height;
}

Memory

class Memory {
    int size;
}

Processor

class Processor {
    int core;
    double speed;
}

Camera

class Camera {
    Len len;
}

Len

class Len {
    int pixel;
}

results matching ""

    No results matching ""