Beispiel #1
0
        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();
        }
Beispiel #2
0
 public Output(AgeCalculation ageCal, DeathCalculator deathCal)
 {
     ageCalculator   = ageCal;
     deathCalculator = deathCal;
 }
Beispiel #3
0
 public Output(AgeCalculation ageCal)
 {
     ageCalculator = ageCal;
 }