Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Person
- {
- string firstName;
- string lastName;
- public Person(string firstName, string lastName)
- {
- this.firstName = firstName;
- this.lastName = lastName;
- }
- public Person()
- {
- this.firstName = "";
- this.lastName = "";
- }
- public virtual string Print()
- {
- return firstName + lastName;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement