Skip to content

Instantly share code, notes, and snippets.

Created May 24, 2022
What would you like to do?
class Laptop
public string Os{ get; } // cannot be modified
public Laptop(string os)
OS = os;
var laptop = new Laptop("macOs");
Console.WriteLine(Laptop.Os); // Laptop os: macOs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment