1. 首页
  2. 课程学习
  3. .Net
  4. C# Program PPT

C# Program PPT

上传者: 2018-12-25 09:41:28上传 ZIP文件 3.17MB 热度 64次
定义一个Person类 using System; public class Person { private string name; private int age; private long ID; public Person(string n, int a, long i) { name = n; age = a; ID = i; } public virtual void Display() { Console.WriteLine(“Name : {0}” , name); Console.WriteLine(“Age : {0}” , age); Console.WriteLine(“ID : {0}” , ID); } }
用户评论