Advertisement
Guest User

Club

a guest
Nov 17th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.64 KB | None | 0 0
  1. public interface Club {
  2.     /**
  3.      * @return name of the club
  4.      */
  5.     public String getName();
  6.  
  7.     /**
  8.      * @return a number representing the year of club's foundation
  9.      */
  10.     public int getFoundedYear();
  11.  
  12.     /**
  13.      * Changes the club's year of foundation
  14.      * @param yearFounded: the year of foundation
  15.      */
  16.     public void setFoundedYear(int yearFounded);
  17.  
  18.     /**
  19.      * @return current address of the club
  20.      */
  21.     public String getAddress();
  22.  
  23.     /**
  24.      * Changes the address of the club
  25.      * @param address: the new address of the club
  26.      */
  27.     public void setAddress(String address);
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement