Guest User

Untitled

a guest
Apr 26th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. abstract class Person {
  2. string Name { get; set; }
  3. void Write();
  4. }
  5.  
  6. class Student : Person {
  7. public void Write() {
  8.  
  9. }
  10. }
  11.  
  12. // this is valid
  13. Person p = new Student();
  14. p.Write();
Add Comment
Please, Sign In to add comment