Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Created May 24, 2022
Embed
What would you like to do?
class Laptop
{
public string Os{ get; set; } // can 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