using System;
namespace U0411
{
class Program
{
int i = 1;
static void Main(string[] args)
{
//创建对象 类名 对象名 = new 构造方法(参数列表);
//利用调用(.)的方式实现对象对字段和方法的访问
Person p = new Person("Lucy",20);
Console.WriteLine(p.name+"的年龄是:"+p.age);
//ctrl+J 强制出现智能提醒框
//p.age += 20;
Console.WriteLine(p.age);
//p.SayHello();
//m.SayHello();
//Console.WriteLine("请输入一个年龄,回车键结束");
//int age = Convert.ToInt32( Console.ReadLine());
//if (p.isOlderThan(age))
//{
// Console.WriteLine("已成年");