Created
September 17, 2010 17:06
-
-
Save unclebob/584555 to your computer and use it in GitHub Desktop.
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
package payroll; | |
public class ContractorCalculator extends PayCalculator { | |
public ContractorCalculator() { | |
super(false); | |
} | |
} |
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
package payroll; | |
public class HourlyCalculator extends PayCalculator { | |
public HourlyCalculator() { | |
super(true); | |
} | |
} |
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 PayCalculatorTest { | |
private PayCalculator hourlyCalculator = new HourlyCalculator(); | |
private PayCalculator contractorCalculator = new ContractorCalculator(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment