static void Main(string[] args) { RedefinedAbstraction interestCalculation = new RedefinedAbstraction(); interestCalculation.principal = 5000; interestCalculation.n = 3; interestCalculation.r = 10; interestCalculation.implementor = new SimpleInterestCalculation(); interestCalculation.calculate(); interestCalculation.implementor = new CompoundInterestCalculation(); interestCalculation.calculate(); Console.Read(); }