Friday, March 16, 2012

Make the constructor in a base class fire upon calling a constructor in its child!

I found what follows here.

public class Manager : Employee

{

   public Manager(int annualSalary) : base(annualSalary)

   {

      
//Add further instructions here.

   }

}

 
 

Azadeh Razaghian explained this to me. I had not seen this before yesterday.

No comments:

Post a Comment