This is a Parent super class. It will be extended by an Employee class.
public class Person {
// Fields or Instance variables
private String name;
private int age;
private boolean isFemale;
// Default contructor
public Person () {
name = "Steve";
age = 20;
isFemale = false;
}
// Constructor with arguments
public Person (String theName, int theAge, boolean isFemale) {
name = theName;
age = theAge;
this.isFemale = isFemale;
}
/**
* @return the person's name
*/
public String getName() {
return name;
}
/**
* @param name sets the person's name
*/
public void setName(String name) {
this.name = name;
}
}