再看一个
using System;
class BaseClass
{
public BaseClass()//定义一个构造器
{
Console.WriteLine("[BaseClass.BaseClass]"+"Constructor called");
}
}
class DerivedClass:BaseClass//这句话是什么意思???
{
public DerivedClass()//定义另一个构造器
{
Console.WriteLine("[DerivedClass.Derived]"+"Constructor called");
}
}
class DefaultInitializer
{
public static void Main()
{
Console.WriteLine("[Main] Instantiating a"+"DerivedClass object");
DerivedClass derived=new DerivedClass();//声明一个对象
Console.ReadLine();
}
}
我是初学者,希望大家能多多帮助我
/bbs/showimg.asp?BoardID=34&filename=2005-4/200542294030151.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://bbs./bbs/showimg.asp?BoardID=34&filename=2005-4/200542294030151.gif');}" onmousewheel="return imgzoom(this);" alt="" />