Skip to content

Instantly share code, notes, and snippets.

@dhust
Last active January 19, 2017 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhust/f4a16bc22a6b5cf3c080b55a8f6d8a63 to your computer and use it in GitHub Desktop.
Save dhust/f4a16bc22a6b5cf3c080b55a8f6d8a63 to your computer and use it in GitHub Desktop.
This is the Employee subclass. It will "extends" the Person super class.
public class Employee extends Person {
// default constructor
public Employee() {
}
// constructor with arguments
public Employee(String name, int age, boolean isFemale) {
super(name, age, isFemale);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment