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()
{
...
07
2012
04
C# 派生类中的构造函数
发布:郑德才博客 | 分类:学习之路 | 评论:0 | 浏览: