示例#1
0
        static void Main(string[] args)
        {
            IEmployee aExsistEmployee = new FullTimeEmployee("Mr. David");
            Freelancer aFreelancer = new Freelancer("Shantonu Sarker");
            IEmployee adapter = new FreelancerAdapter(aFreelancer);
            Console.WriteLine("\n"+"This is sytem exist full time employee");
            aExsistEmployee.AttenOffice();
            aExsistEmployee.JoinMeeting();
            aExsistEmployee.GetDailyReport();

            Console.WriteLine("\n"+"This is new freelancer");
            aFreelancer.StartWork();
            aFreelancer.RemoteConversation();

            Console.WriteLine("\n" + "This is freelancer and frelancerAdapter");
            adapter.AttenOffice();
            adapter.GetDailyReport();
            adapter.JoinMeeting();
            Console.ReadLine();
        }
        static void Main(string[] args)
        {
            IEmployee  aExsistEmployee = new FullTimeEmployee("Mr. David");
            Freelancer aFreelancer     = new Freelancer("Shantonu Sarker");
            IEmployee  adapter         = new FreelancerAdapter(aFreelancer);

            Console.WriteLine("\n" + "This is sytem exist full time employee");
            aExsistEmployee.AttenOffice();
            aExsistEmployee.JoinMeeting();
            aExsistEmployee.GetDailyReport();

            Console.WriteLine("\n" + "This is new freelancer");
            aFreelancer.StartWork();
            aFreelancer.RemoteConversation();

            Console.WriteLine("\n" + "This is freelancer and frelancerAdapter");
            adapter.AttenOffice();
            adapter.GetDailyReport();
            adapter.JoinMeeting();
            Console.ReadLine();
        }
示例#3
0
 public void AttenOffice()
 {
     Console.WriteLine(freelancer.Name + "'s has come to office, his Status : ");
     freelancer.StartWork();
 }