I'm creating a default constructor for a struct and setting all values to 0, but there is a substruct and value (Date birthDate) referenced and I'm not sure how to handle it.
The Date struct includes 3 integers: day, month, year. Combined they = birthDate.
Reptile::Reptile(){
species = " ";
DangerAssessment dangerAssess = "";
Date birthDate() = 0;
SizeOfEnclosure sizeofenclosure;
exhibitName = " ";
}
Date birthdate = Date(0,0,0)?Reptile::Reptile(): species(""), dangerAssess(""), birthDate(0), sizeofenclosure(0), exhibitName("") { }If you are calling default constructors you can leave them out. They will be default constructed. minimal reproducible example required for more specific information.Date birthDate() = 0what do you want to be there?