我正在尝试从我的 Resident 类中调用我的 Person 类构造函数
人:
public class Person
{
private String name;
private String surname;
private String address1;
private String address2;
private String telephone;
private String faxNumber;
Person(String aName, String aSurname, String aAddress1, String aAddress2, String aTelephone, String aFaxNumber)
{
name = aName;
surname = aSurname;
address1 = aAddress1;
address2 = aAddress2;
telephone = aTelephone;
faxNumber = aFaxNumber;
}
居民:
public class Resident : Person
{
private String IDNumberPrim;
private String IDNumberSec1;
private String IDNumberSec2;
private String IDNumberSec3;
private String IDNumberSec4;
private String tempID;
private String passportNumber;
Resident(String aIDNumberPrim, String aIDNumberSec1, String aIDNumberSec2, String aIDNumberSec3, String aIDNumberSec4, String aTempId, String aPassportNumber)
我已经尝试过基本命令,但它从来没有用过。
请帮忙!!!
- - - - - - 更新 - - - - - - - -
问题解决了。
感谢所有的帮助和建议