Lawrence Avery
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.
}
}
public class Supervisor : Employee
{
public Supervisor (int vacationDays) : base (vacationDays)
{
//Add more statements here.
}
}
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.