/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package mumbay.data;
/**
*
* @author HP
*/
public class User {
private String fname_,lname_,username_;
private String password_;
private String address_,webAddress_;
private String mobile_,phone_;
private String email_;
public User() {
}
public User(String fname) {
this.fname_ = fname;
}
public User(String fname, String lname) {
this.fname_ = fname;
this.lname_ = lname;
}
public User(String username, String password_, String fname, String email_) {
username_=username;
this.fname_ = fname;
this.password_ = password_;
this.email_ = email_;
}
public String getUsername() {
return username_;
}
public void setUsername(String username_) {
this.username_ = username_;
}
public String getAddress() {
return address_;
}
public void setAddress(String address_) {
this.address_ = address_;
}
public String getEmail() {
return email_;
}
public void setEmail(String email_) {
this.email_ = email_;
}
public String getFname() {
return fname_;
}
public void setFname(String fname_) {
this.fname_ = fname_;
}
public String getLname() {
return lname_;
}
public void setLname(String lname_) {
this.lname_ = lname_;
}
public String getMobile() {
return mobile_;
}
public void setMobile(String mobile_) {
this.mobile_ = mobile_;
}
public String getPassword() {
return password_;
}
public void setPassword(String password_) {
this.password_ = password_;
}
public String getPhone() {
return phone_;
}
public void setPhone(String phone_) {
this.phone_ = phone_;
}
public String getWebAddress() {
return webAddress_;
}
public void setWebAddress(String webAddress_) {
this.webAddress_ = webAddress_;
}
@Override
public String toString() {
return "User{" + "fname_=" + fname_ + "lname_=" + lname_ + "password_=" + password_ + "address_=" + address_ + "webAddress_=" + webAddress_ + "mobile_=" + mobile_ + "phone_=" + phone_ + "email_=" + email_ + '}';
}
}
No comments:
Post a Comment