Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace World1b
- {
- class Person
- {
- private string name;
- // private string _sdhgfshfg;
- private int age;
- private int temp;
- public string Name
- {
- get { return name; }
- set { name = value; }
- }
- public int Age
- {
- get { return age; }
- set { age = value; }
- }
- public Person(string name, int age)
- {
- // this.name = name;
- Name = name;
- Age = age;
- }
- // public string Name { get; set; }
- /*
- public string GetName()
- {
- return name;
- }
- public void SetName(string name)
- {
- this.name = name;
- }
- public int GetAge()
- {
- return age;
- }
- public void SetAge(int age)
- {
- this.age = age;
- }
- public double GetBalance()
- {
- return age * 34;
- }
- */
- }
- }
Add Comment
Please, Sign In to add comment