Exemple #1
0
        public static void Main()
        {
            var darkTheme  = new DarkTheme();
            var lightTheme = new LightTheme();

            var about   = new About(darkTheme);
            var careers = new Careers(lightTheme);

            Console.WriteLine(about.GetContent());
            Console.WriteLine(careers.GetContent());
        }
Exemple #2
0
        static void Main(string[] args)
        {
            var dark  = new Dark();
            var light = new Light();

            var about   = new About(dark);
            var careers = new Careers(light);

            about.GetDetails();
            careers.GetDetails();

            Console.ReadKey();
        }