Skip to content

Instantly share code, notes, and snippets.

@DominicFinn
Created April 28, 2017 09:33
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 DominicFinn/66eb6de50eb87c7e31d42fe4ed2ee455 to your computer and use it in GitHub Desktop.
Save DominicFinn/66eb6de50eb87c7e31d42fe4ed2ee455 to your computer and use it in GitHub Desktop.
Classes to support DojoLand
abstract class Person
{
public string Name { get; set; }
protected Person(string name)
{
Name = name;
}
}
sealed class Sensei : Person
{
public Sensei(string name) : base(name)
{
}
}
sealed class Student : Person
{
public Student(string name) : base(name)
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment