I study and test some basic technologies. I created a few enums with default access modifiers (they can be used in scope of the current package only).
This Sex enum is used to hold the gender of a Person. Of course, it's a only joke.
This enum is used to hold the employment status of a Person.
My public class Person definition:
enum Sex {MALE, FEMALE, SHEMALE}
This Sex enum is used to hold the gender of a Person. Of course, it's a only joke.
enum Employment {EMPLOYED, SELFEMPLOYED, UNEMPLOYED};
This enum is used to hold the employment status of a Person.
My public class Person definition:
public class Person implements Serializable, Comparable {
private long ID;
private String name;
private String surname;
private int age;
private Sex sex = Sex.FEMALE;
private Employment vocation = Employment.UNEMPLOYED;
private File userPic;
...