Created
November 4, 2018 18:17
-
-
Save dotsonjb14/0820d0a27dfb0e53ebb60d5f8229e4b0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.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