package static关键字;
class Employee{
//方法区
private String name;
//名字
static String company = "阿里巴巴";
//公司名
private String getHane() {
//方法
return name;
}
private void setName(String name) {
//方法
this.name = name;
}
public class Static {
public static void main(String[] args) {
//方法
Employee e = new Employee();
System.out.println(e.company);
}
}