I've been trying to compile my code but it wouldnt the <identifire> expected error keeps on coming showing
/**
* Constructor for objects of class years
*/
public years(int newNumDays, newNumMonth, newNumYears)
{
numMonth = newNumDays;
numDays = newNumMonth;
numYears = newNumYears;
}
the curly brackets are correct and now im just lost on how to fix this
/**
* Constructor for objects of class years
*/
public years(int newNumDays, newNumMonth, newNumYears)
{
numMonth = newNumDays;
numDays = newNumMonth;
numYears = newNumYears;
}
the curly brackets are correct and now im just lost on how to fix this
Comment