static void Main(string[] args) { var person = new Person() { Name = "Benigni" }; person.Introduce("Fellini"); var p = Person.Parse("Pasolini"); p.Introduce("Luca"); //var customer = new Customer(); //var order = new Order(); //customer.Orders.Add(order); //UseOverloadsPoints(); UseParamsCalculator(); Customer customer = new Customer(44); customer.Orders.Add(new Customer.Order()); customer.Orders.Add(new Customer.Order()); customer.Orders.Add(new Customer.Order()); customer.Promote(); Console.WriteLine(customer.Orders.Count); var privatePerson = new AccessModifiers.Person(); privatePerson.SetBirthdate(new DateTime(1990, 4, 4)); Console.WriteLine(privatePerson.GetBirthdate()); var me = new AccessModifiers.Man(new DateTime(1990, 4, 4)); Console.WriteLine(me.Age); // INDEXERS var cookie = new HttpCookie(); cookie["name"] = "fellini"; Console.WriteLine(cookie["name"]); Console.Clear(); // EXERCISES Console.WriteLine("Hello"); var stopWatch = new StopWatch(); stopWatch.Start(); Task.Run(async() => { await Task.Delay(2000); stopWatch.Stop(); Console.WriteLine(stopWatch.Duration); }); var post = new Post(); post.AddPost ( "Hello world", "This is my first post" ); post.GiveLike(); post.GiveLike(); post.GiveLike(); post.GiveLike(); Console.WriteLine(post.Like); Console.WriteLine(post.Likes()); post.DisLike(); Console.WriteLine(post.Likes()); //Console.WriteLine(post.Details()); Console.WriteLine(post.Test()); }