Skip to content

Instantly share code, notes, and snippets.

@JasonBock
Created May 12, 2022 15:03
Show Gist options
  • Save JasonBock/fef35fd35ef1af54ae639b49fb415332 to your computer and use it in GitHub Desktop.
Save JasonBock/fef35fd35ef1af54ae639b49fb415332 to your computer and use it in GitHub Desktop.
public sealed class Golfer
: IDriver
{
public void Drive()
{
var value = RandomNumberGenerator.GetInt32(250, 320);
Console.WriteLine($"{value} yards");
}
public override void Stop()
{
// Note: This doesn't work.
IDriver.base.Stop();
var value = RandomNumberGenerator.GetInt32(250, 320);
Console.WriteLine($"{value} yards");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment