//学生类标签:xh,name,xm,System,实例,Student,oppdemo2,out From: https://www.cnblogs.com/123jgh/p/16787058.html
public class Student {
//属性:字段
String name;//null
int age;//0
//方法
public void study(){
System.out.println(this.name+"在学习");
}
}
/*
public class Application {
public static void main(String[] args) {
//类:抽象的,实例化的
//类实例化后会返回一个自己的对象
//student
//student对象就是一个Student类的具体实例
Student xm = new Student();
Student xh = new Student();
xm.name = "小明";
xm.age = 10;
System.out.println(xm.name);
System.out.println(xm.age);
xh.name = "小红";
xh.age = 15;
System.out.println(xh.name);
System.out.println(xh.age);
}
}
*/