#include <oxstd.h>

class AnnualSample
{                                  // constructor
    AnnualSample(const iYear1, const iYear2);
    GetSampleSize();                // added function
    decl m_iYear1;
    decl m_iYear2;
    decl m_cT;                    // added data member
};

AnnualSample::AnnualSample(const iYear1, const iYear2)
{
    m_iYear1 = iYear1;
    m_iYear2 = iYear2;
    m_cT = m_iYear2 - m_iYear1 + 1;// value set in constructor
}

AnnualSample::GetSampleSize()      // only way to get the value
{                                  //   from outside
    return m_cT;                     
}


main()
{
    decl sam = new AnnualSample(1960, 2000);
    println("The sample size is: ", sam.GetSampleSize());
    delete sam;
}
