Last active
August 29, 2015 14:25
-
-
Save efleming969/eef8371add997f0ffca0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 interface IPay | |
{ | |
decimal CalculatePay( Employee currentEmployee ); | |
void SendToBigBallerAccount(); | |
} | |
public class BigBallerPay : IPay | |
{ | |
public decimal CalculatePay( Employee currentEmployee ) | |
{ | |
return currentEmployee.PayRate * currentEmployee.Hours * 1000; | |
} | |
public void SendToBigBallerAccount() | |
{ | |
} | |
} | |
public class FTEPay : IPay | |
{ | |
public decimal CalculatePay( Employee currentEmployee ) | |
{ | |
return currentEmployee.PayRate * currentEmployee.Hours; | |
} | |
public void SendToBigBallerAccount() | |
{ | |
throw new System.NotImplementedException(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment