Skip to content

Instantly share code, notes, and snippets.

@dotsonjb14
Created November 4, 2018 18:17
Show Gist options
  • Save dotsonjb14/0820d0a27dfb0e53ebb60d5f8229e4b0 to your computer and use it in GitHub Desktop.
Save dotsonjb14/0820d0a27dfb0e53ebb60d5f8229e4b0 to your computer and use it in GitHub Desktop.
using System.Collections.Generic;
namespace journey_01.final
{
public class Person
{
public int ID { get; set; }
public string Name { get; set; }
public List<string> Classes { get; set; } = new List<string>();
public bool IsInClass(string cls)
{
return Classes.Contains(cls);
}
}
public class Teacher : Person
{
public short Parking { get; set; }
}
public class Student : Person
{
public float GPA { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment