Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Set and open the class
- public class AddressBook {
- // These are the variables for the class
- private String firstName;
- private String middleName;
- private String lastName;
- private String homeAddress;
- private String businessPhone;
- private String homePhone;
- private String cellPhone;
- private String skypeId;
- private String facebookId;
- private String personalWebsite;
- // constructor for default level variables
- public AddressBook(String firstName, String middleName, String lastName, String homeAddress, String businessPhone,
- String homePhone, String cellPhone, String skypeId, String facebookId, String personalWebsite) {
- super();
- this.firstName = firstName;
- this.middleName = middleName;
- this.lastName = lastName;
- this.homeAddress = homeAddress;
- this.businessPhone = businessPhone;
- this.homePhone = homePhone;
- this.cellPhone = cellPhone;
- this.skypeId = skypeId;
- this.facebookId = facebookId;
- this.personalWebsite = personalWebsite;
- }
- // Get and set
- public String getFirstName() {
- return firstName;
- }
- public void setFirstName(String firstName) {
- this.firstName = firstName;
- }
- public String getMiddleName() {
- return middleName;
- }
- public void setMiddleName(String middleName) {
- this.middleName = middleName;
- }
- public String getLastName() {
- return lastName;
- }
- public void setLastName(String lastName) {
- this.lastName = lastName;
- }
- public String getHomeAddress() {
- return homeAddress;
- }
- public void setHomeAddress(String homeAddress) {
- this.homeAddress = homeAddress;
- }
- public String getBusinessPhone() {
- return businessPhone;
- }
- public void setBusinessPhone(String businessPhone) {
- this.businessPhone = businessPhone;
- }
- public String getHomePhone() {
- return homePhone;
- }
- public void setHomePhone(String homePhone) {
- this.homePhone = homePhone;
- }
- public String getCellPhone() {
- return cellPhone;
- }
- public void setCellPhone(String cellPhone) {
- this.cellPhone = cellPhone;
- }
- public String getSkypeId() {
- return skypeId;
- }
- public void setSkypeId(String skypeId) {
- this.skypeId = skypeId;
- }
- public String getFacebookId() {
- return facebookId;
- }
- public void setFacebookId(String facebookId) {
- this.facebookId = facebookId;
- }
- public String getPersonalWebsite() {
- return personalWebsite;
- }
- public void setPersonalWebsite(String personalWebsite) {
- this.personalWebsite = personalWebsite;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement