package com.itheima;
public class phone {
//成员变量
String brang;
int price;
public void call(){
System.out.println("打电话");
}
public void message(){
System.out.println("发短信");
}
}
标签:JAVA,定义,void,System,println,public,out
From: https://www.cnblogs.com/cy-xt/p/16867645.html