Last active
January 19, 2017 17:18
-
-
Save dhust/f4a16bc22a6b5cf3c080b55a8f6d8a63 to your computer and use it in GitHub Desktop.
This is the Employee subclass.
It will "extends" the Person super class.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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