Skip to content

Instantly share code, notes, and snippets.

Created May 25, 2021
What would you like to do?
abstract class Weather
public abstract Temperature GetTemperature();
class Spain : Weather
public override Celsius GetTemperature() => new Celsius();
class USA : Weather
public override Farenheit GetTemperature() => ne Farenheit();
class Temperature{ }
class Celsius{ }
class Farenheit{ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment