Beispiel #1
0
        static void Main(string[] args)
        {
            //var h = new Holiday();

            var h = new HolidayWithTravel();

            string x = "Hello";

            Console.WriteLine(x);
            x = x.AmazingExtraString();
            Console.WriteLine(x);
        }
        static void Main(string[] args)
        {
            // var h = new Holiday();
            var h = new HolidayWithTravel();

            string x = "Hello World";

            if (x.StartsWith("Hello"))
            {
                Console.WriteLine("world");
            }

            x = x.AmazingExtraStringMethod();
            Console.WriteLine(x);

            // used in Math class
            Console.WriteLine(Math.PI);
            Console.WriteLine(Math.Max(30, 40));
        }
Beispiel #3
0
 static void Main(string[] args)
 {
     var holiday = new HolidayWithTravel();
 }