public void Run() { Console.Clear(); Welkom startscherm = new Welkom(); startscherm.WelkomScherm(); Age leeftijd = new Age(); leeftijd.InputCall(); Console.WriteLine("\nDe geboorte datum is " + leeftijd.Dag + "/" + leeftijd.Maand + "/" + leeftijd.Jaar + ".\n"); AgeCalculation calculator = new AgeCalculation(); calculator.CalculateAge(leeftijd.Omzetten()); DeathCalculator deathCalculator = new DeathCalculator(); //Output output = new Output(calculator); Output output = new Output(calculator, deathCalculator); output.PrintOutput(); Console.ReadLine(); }
public Output(AgeCalculation ageCal, DeathCalculator deathCal) { ageCalculator = ageCal; deathCalculator = deathCal; }
public Output(AgeCalculation ageCal) { ageCalculator = ageCal; }