Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Created June 15, 2021 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgolubyev/277575932f2aa63c6fc5da047b534ebd to your computer and use it in GitHub Desktop.
Save lgolubyev/277575932f2aa63c6fc5da047b534ebd to your computer and use it in GitHub Desktop.
class Temperature
{
public float Degrees { get; set; }
}
class Celsius : Temperature
{
public Celsius(float temp)
{
Grados = temp;
}
}
class Fahrenheit : Temperature
{
public Fahrenheit(float temp)
{
Grados = temp;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment