Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Created June 15, 2021 11:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgolubyev/4bc88297af25973f695d6c6687b5baef to your computer and use it in GitHub Desktop.
Save lgolubyev/4bc88297af25973f695d6c6687b5baef to your computer and use it in GitHub Desktop.
public class Person
{
public string Name { get; set; }
}
public class Pupil : Person
{
public string Class{ get; set; }
public List<int> IdsCourse { get; set; }
}
public class Teacher : Person
{
public string Class { get; set; }
public int IdContract { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment