public Person Person1 = new Person();
public Person Person2 = new Person();
Console.WriteLine(Person1.Name + "年紀為"+ Person1.Age);
Console.WriteLine("身高為 :"+Person1.Height +"\t"+"體重為"+ Person1.Weight+"\n");
Console.WriteLine(Person2.Name + "年紀為"+ Person2.Age);
Console.WriteLine("身高為 :"+Person2.Height +"\t"+ "體重為"+ Person2.Weight+"\n");
Console.WriteLine(Person1.Name + "BMI為 : "+ Person1.BMI());
Console.WriteLine(Person2.Name + "BMI為 : "+ Person2.BMI());
Person1.Walk("左","倒車音效");
public const int Legs = 2, Hand =2;
public float Height = 168f;
public float Weight = 58.5f;
public bool Adult = false;
public string Name = "FU";
Console.WriteLine(Name + ":我的身高為 : "+ Height +"體重 : "+ Weight+" 年齡 : "+ Age);
return Weight /((Height/100)*(Height /100));
public void Walk(string direction , string sound ="走路音效")
Console.WriteLine(sound);
Console.WriteLine(Name +"往"+ direction + "走");
public void Walk(string direction,int speed)
Console.WriteLine(Name +"往"+ direction + "走,時速為: "+speed);