Using inheritance in constructor (publix X () : y)
问题 I have just seen following code but I do not understand the derivation of base class right in the constructor declaration. What is this and is this possible with ordinal methods? public SplashAppContext(Form mainForm, Form splashForm) : base(splashForm) { this.mainForm = mainForm; splashTimer.Tick += new EventHandler(SplashTimeUp); splashTimer.Interval = 2000; splashTimer.Enabled = true; } 回答1: It's calling a base class constructor, passing the argument splashForm of the type Form to it. You