```java
package com;
public class Student {
String name;
private int number;
private int age;
private String dizhi;
public Student(String name, int number, int age, String dizhi) {
this.name = name;
this.number = number;
this.age = age;
this.dizhi = dizhi;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getNumber() {
return number;
}
public void setNumber(int number) {
this.number = number;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public String getDizhi() {
return dizhi;
}
public void setDizhi(String dizhi) {
this.dizhi = dizhi;
}
public void xuexi(String name) {
System.out.println(name +"在学习。。。。");
}
public void call(String name){
System.out.println(name +"在打电话。。。。");
}
public void da(String name){
System.out.println(name +"在打吃鸡。。。。");
}
public static void main(String[] args) {
Student student = new Student("jack",12,101,"东莞");
student.da("yanyu");
student.call("yy");
student.xuexi("drtd");
System.out.println(student.age);
System.out.println(student.number);
System.out.println(student.dizhi);
System.out.println(student.name);
}
}
![在这里插入图片描述](https://img-blog.csdnimg.cn/direct/b6b9c9a655cc4f2b923f087727984e04.png)