SHARE
TWEET

Untitled

a guest Nov 19th, 2019 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package ee.ttu.algoritmid.dancers;
  2.  
  3.  
  4. import java.net.PortUnreachableException;
  5.  
  6. /**
  7.  * API specification for the objects representing various dancers.
  8.  */
  9. public class Dancer {
  10.     public enum Gender {
  11.         MALE, FEMALE
  12.     }
  13.  
  14.  
  15.     private String name;
  16.     private int height;
  17.     private Gender gender;
  18.  
  19.  
  20.     public Dancer(String name, int height, Gender gender) {
  21.         this.name = name;
  22.         this.height = height;
  23.         this.gender = gender;
  24.     }
  25.  
  26.  
  27.     public void setName(String name) {
  28.         this.name = name;
  29.     }
  30.  
  31.     public void setHeight(int height) {
  32.         this.height = height;
  33.     }
  34.  
  35.     public void setGender(Gender gender) {
  36.         this.gender = gender;
  37.     }
  38.  
  39.     public String getName() {
  40.         return name;
  41.     }
  42.  
  43.     public Gender getGender() {
  44.         return gender;
  45.     }
  46.  
  47.     public int getHeight() {
  48.         return height;
  49.     }
  50.  
  51.  
  52. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top