Esempio n. 1
0
        static void Main(string[] args)
        {
            //Subclasses referenced from the team dll
            Hockey hockeyTeam = new Hockey("hockey", "Jack Jacobs", "The Losers", "Finland", 27);
            Soccer newTeam    = new Soccer("soccer", "Jordan Gilmore", "The Bowies", "Red", 20);

            //prints subclasses ToString()'s to console
            Console.WriteLine(hockeyTeam);
            Console.WriteLine("The team's budget is: $" + hockeyTeam.TeamFunding());
            Console.WriteLine();
            Console.WriteLine(newTeam);
            Console.WriteLine("The team's budget is: $" + newTeam.TeamFunding());
            //prints interface value

            Console.Read(); //keeps console window open
        }