package com.mari;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class ChallengeDemoApp {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ChallengeConfig.class);
        Coach theCoach = context.getBean("FootballCoach",FootballCoach.class);
        System.out.println(theCoach.getDailyWorkout());
        System.out.println(theCoach.getDailyFortune());
        context.close();
    }
}
