import java.util.*;
class Phone{
private String brand;
private String model;
private String os;
private String chip;
private int price;
private boolean isOn;
public Phone(String brand, String model, String os, String chip, int price, boolean isOn) {
this.brand = brand;
this.model = model;
this.os = os;
this.chip = chip;
this.price = price;
this.isOn = isOn;
}
public void turnOn(){
this.isOn = true;
}
public void turnOff(){
this.isOn = false;
}
public void sendMessage(String phoneNumber, String message){
System.out.println(message + " send to " + phoneNumber + "......");
}
public void call(String phoneNumber){
System.out.println("call " + phoneNumber + "......");
}
@Override
public String toString() {
return "[品牌:" + brand + ";型号:" + model + ";操作系统:" + os + ";芯片:" + chip + ";价格:" + price + "]";
}
}