Example #1
0
        static void Main(string[] args)
        {
            Person person = new Person()
            {
                FirstName    = "pamal",
                LastName     = "sahan",
                EmailAddress = "*****@*****.**",
                PhoneNumber  = "0782916090"
            };

            Chore chore = new Chore();

            chore.ChoreName = "get trash";
            chore.Owner     = person;
            chore.PerformedWork(3);
            chore.PerformedWork(1.3);
            chore.CompleteChore();
        }
        static void Main(string[] args)
        {
            Person owner = new Person
            {
                FirstName    = "Tim",
                LastName     = "Corey",
                EmailAddress = "*****@*****.**",
                PhoneNumber  = "555-1212"
            };

            Chore chore = new Chore
            {
                ChoreName = "Take out the trash",
                Owner     = owner
            };

            chore.PerformedWork(3);
            chore.PerformedWork(1.5);
            chore.CompleteChore();

            Console.ReadLine();
        }