请解释
public class Contact {
private String contactId;
private String firstName;
private String lastName;
private String email;
private String phoneNumber;
public Contact(String contactId,String firstName, String lastName, String email, String phoneNumber) {
super(); //what does standalone super() define? With no args here?
this.firstName = firstName;
this.lastName = lastName; //when is this used?, when more than one args to be entered?
this.email = email;
this.phoneNumber = phoneNumber;
}
内部没有参数的 Super() 意味着要定义多个参数?这是在“this.xxx”的帮助下完成的吗?
为什么我们在“公共类联系人”本身中定义。为什么我们在这里再次定义并调用它的参数?