Skip to content

Instantly share code, notes, and snippets.

@dotsonjb14
Last active November 4, 2018 18:11
Show Gist options
  • Save dotsonjb14/ad994a9973012943794a5ce0dff42427 to your computer and use it in GitHub Desktop.
Save dotsonjb14/ad994a9973012943794a5ce0dff42427 to your computer and use it in GitHub Desktop.
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