﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TestApplication.Demo.Classes.Constructors
{
    public class Laborer
    {
        /***************
        * Constructors *
        ***************/
        /*
            -Create an instance of your class.
            -Have the same name as the class.
            -May contain parameters, but don't need any.  
            -Default constructor has no parameters, if you provide non, you get a default one.

            -You know how when you instantiate a class by doing 'Server newServer = new Server();', the open and close parenthesis is the "implicit default" no parameter constructor.
            -If you create a constructor YOU WILL NOT GET THE IMPLICIT DEFAULT CONSTRUCTOR.  You will need to create an EXPLICITLY DEFINED default constructor.  Kind of lame but makes sense.
        */

        public int YearsOfService { get; set; }
        public int Office { get; set; }

        //Constructor.
        public Laborer(int years, int office)
        {
            YearsOfService = years;
            Office = office;
        }

        //Since we have a constructor we need to create an explicit default constructor.
        public Laborer()
        {
            //Hi, I'm an explicit default constructor!
        }
    }
}
