Created
April 28, 2017 09:33
-
-
Save DominicFinn/66eb6de50eb87c7e31d42fe4ed2ee455 to your computer and use it in GitHub Desktop.
Classes to support DojoLand
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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