Advertisement
Guest User

Badani Homo

a guest
Jan 23rd, 2020
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. class Person
  2. {
  3. string firstName;
  4. string lastName;
  5. public Person(string firstName, string lastName)
  6. {
  7. this.firstName = firstName;
  8. this.lastName = lastName;
  9. }
  10. public Person()
  11. {
  12. this.firstName = "";
  13. this.lastName = "";
  14. }
  15. public virtual string Print()
  16. {
  17. return firstName + lastName;
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement