Advertisement
andersonalmada

Untitled

Jul 1st, 2022
855
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.63 KB | None | 0 0
  1. package br.ufc.mandacaru.model;
  2.  
  3. public class Address {
  4.  
  5.     private String street;
  6.     private String zipcode;
  7.    
  8.     public Address() {
  9.    
  10.     }
  11.  
  12.     public Address(String street, String zipcode) {
  13.         super();
  14.         this.street = street;
  15.         this.zipcode = zipcode;
  16.     }
  17.  
  18.     public String getStreet() {
  19.         return street;
  20.     }
  21.  
  22.     public void setStreet(String street) {
  23.         this.street = street;
  24.     }
  25.  
  26.     public String getZipcode() {
  27.         return zipcode;
  28.     }
  29.  
  30.     public void setZipcode(String zipcode) {
  31.         this.zipcode = zipcode;
  32.     }
  33.  
  34.     @Override
  35.     public String toString() {
  36.         return "Address [street=" + street + ", zipcode=" + zipcode + "]";
  37.     }
  38. }
  39.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement