static void Main(string[] args) { Console.WriteLine("Hello World!"); Int32 a; Double d; Decimal dec; String str1; // Long is not a Reference Type! Long lng1; Boolean b; String[] dogs = new string[] { "Peanut", "Fifi", "Bigi", "Fido", "Clarence" }; int[] intArray = new int[5]; intArray[0] = 3; // Array size cannot be specified in a variable declaration(try initializing with a 'new' expression) //int[5] intArray2 = new int[]; Pet pet = new Cat(); Shape shape = new Ball(); Console.WriteLine(string.Format("My {0} is playing with a {1}.", pet.GetName(), shape.GetName())); string weather = "rainy"; ChangeTheString(weather); Console.WriteLine("The weather is " + weather); string[] rainyDays = new[] { "Monday", "Friday" }; ChangeTheArray(rainyDays); Console.WriteLine("The rainy days were on " + rainyDays[0] + " and " + rainyDays[1]); Forecast forecast = new Forecast { Pressure = 700, Temperature = 20 }; ChangeTheClassInstance(forecast); Console.WriteLine("The temperature is " + forecast.Temperature + "°C"); var housel = new House(4, 2010); var house2 = new House(2, 2017); var person = new Person { Name = "Ajit" }; person.SaySomething(); Console.ReadLine(); }