Last active
November 4, 2018 18:11
-
-
Save dotsonjb14/ad994a9973012943794a5ce0dff42427 to your computer and use it in GitHub Desktop.
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
using System.Collections.Generic; | |
namespace journey_01 | |
{ | |
public class Person01 | |
{ | |
public int ID; | |
public string Name; | |
public List<string> Classes; | |
public Person01() | |
{ | |
Classes = new List<string>(); | |
} | |
public bool IsInClass(string cls) | |
{ | |
return Classes.Contains(cls); | |
} | |
} | |
public class Teacher01 : Person01 | |
{ | |
public short Parking; | |
} | |
public class Student01 : Person01 | |
{ | |
public float GPA; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment