Esempio n. 1
0
        static void Main(string[] args)
        {
            YearlyMember   yearlyMember   = new YearlyMember("yearlyMember", "yearlyMemberAddress", "yearlyMemberPhone", 500);
            LifeTimeMember lifeTimeMember = new LifeTimeMember("lifeTimeMember", "lifeTimeMemberAddress", "lifeTimeMemberPhone", 10000);

            Console.WriteLine(yearlyMember.ToString());
            PrintMemberInformation(yearlyMember);

            Console.WriteLine(lifeTimeMember.ToString());
            PrintMemberInformation(lifeTimeMember);
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            YearlyMember   a = new YearlyMember("Tim", "100 place", "5551035566", 6240);
            LifeTimeMember b = new LifeTimeMember("Ron", "102 st", "5551234422", 62400);

            Console.WriteLine("Yearly Members:");
            PrintMemberInformation(a);
            Console.WriteLine(a.ToString());


            Console.WriteLine();
            Console.WriteLine("Lifetime Members:");
            PrintMemberInformation(b);
            Console.WriteLine(b.ToString());
        }