This repository acts as a personal archive for my solutions to EdX course *Data Structures and Software Design* from PennX.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
404 B

  1. public class PublishingLocation {
  2. private String city;
  3. private String state;
  4. private String postCode;
  5. public PublishingLocation(String city, String state, String postCode){
  6. this.city = city;
  7. this.state = state;
  8. this.postCode = postCode;
  9. }
  10. public String getCity() {
  11. return city;
  12. }
  13. public String getState() {
  14. return state;
  15. }
  16. public String getPostCode() {
  17. return postCode;
  18. }
  19. }