Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace Repository
- {
- using System;
- using System.Collections.Generic;
- using System.Text;
- public class Person
- {
- private string name;
- private int age;
- private DateTime birthDate;
- public Person(string name, int age, DateTime birthDate)
- {
- this.Name = name;
- this.Age = age;
- this.BirthDate = birthDate;
- }
- public string Name
- {
- get
- {
- return this.name;
- }
- set
- {
- this.name = value;
- }
- }
- public int Age
- {
- get
- {
- return this.age;
- }
- set
- {
- this.age = value;
- }
- }
- public DateTime BirthDate
- {
- get
- {
- return this.birthDate;
- }
- set
- {
- this.birthDate = value;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement