DayOfYear::DayOfYear( int monthValue, int dayValue) : month(monthValue), day(dayValue)
same with
DayOfYear::DayOfYear(int monthValue, int dayValue) { month = monthValue; day = dayValue; }
Also there should be parent class
Includes invocation of parent constructor
if do not, default base class automatically called