定义民政业务类 Person
时间: 2024-06-12 18:10:19 浏览: 102
民政业务类 Person 可以定义如下:
```java
public class Person {
private String name;
private int age;
private String idNumber;
private String address;
public Person(String name, int age, String idNumber, String address) {
this.name = name;
this.age = age;
this.idNumber = idNumber;
this.address = address;
}
// getter and setter methods
}
```
该类包含了姓名、年龄、身份证号码和地址等属性,并提供了相应的构造方法和 getter/setter 方法。
阅读全文