Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Member[] clubMembers = new Member[5];
            clubMembers[0] = new NormalMember("Special Rate", "James", 1, 2010);
            clubMembers[1] = new NormalMember("Normal Rate", "Andy", 2, 2011);
            clubMembers[2] = new NormalMember("Normal Rate", "Bill", 3, 2011);
            clubMembers[3] = new VIPMember("Carol", 4, 2012);
            clubMembers[4] = new VIPMember("Evelyn", 5, 2012);

            foreach (Member m in clubMembers)
            {
                m.CalculateAnnualFee();
                Console.WriteLine(m.ToString());
            }
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            NormalMember normalMember = new NormalMember("Normal Member", "Test Member", 1, 2017);

            Console.ReadLine();
        }