public static void Main()
Console.WriteLine("Hello World!");
Console.WriteLine("Key in your laptop's brand:");
var brand = Console.ReadLine();
Console.WriteLine("Key in your laptop's year:");
var year = int.Parse(Console.ReadLine());
var newLaptop = new Laptop {Brand = brand, IsMine = false, Year = year};
Console.WriteLine("===============");
Console.WriteLine("Useless Summary");
Console.WriteLine("===============");
Console.WriteLine("Brand: " + newLaptop.Brand + ", Year: " + newLaptop.Year);
Console.WriteLine("==============================================");
Console.WriteLine("Testing our Laptop's 'TellMeTheYear' function:");
Console.WriteLine("==============================================");
newLaptop.TellMeTheYear(true);
public string Brand { get; set; }
public int Year { get; set; }
public bool IsMine { get; set; }
public void TellMeTheYear(bool CallMeHarry)
Console.WriteLine(PassMeTheYear(CallMeHarry));
public void TellMeTheYear(int NewYear)
Console.WriteLine(NewYear);
public string PassMeTheYear(bool CallMeHarry = false)
return (CallMeHarry ? "Harry" : "NOT Harry") + ", the year is: " + Year;