Link to home
Create AccountLog in
Avatar of Lawrence Avery
Lawrence AveryFlag for United States of America

asked on

Purpose of calling a base constructor from a constructor

What is the main purpose of  the base class constructor being calling before the constructor block is executed

public class Supervisor : Employee
{
   public Supervisor (int vacationDays) : base (vacationDays)
   {
      //Add more statements here.
   }
}
SOLUTION
Avatar of TheGreatCO
TheGreatCO

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
ASKER CERTIFIED SOLUTION
Avatar of HooKooDooKu
HooKooDooKu

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.