Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can we add protected/private helping functions to the base and derived classes?

0
Posted

Can we add protected/private helping functions to the base and derived classes?

0

Yes and no. The project specification DOES permit you to write your own protected and/or private helping functions for the Event and the AMember classes. For at least one of these classes you probably will want to add one or more protected helping functions. The project specification does not say much about private/protected “helping functions” for the 4 derived classes (TimedEvent, TeamEvent, Athlete or Coach) HOWEVER you CAN add both private and protected helping functions to these 4 derived classes as you feel necessary. • Is there a missing semi-colon in main.cpp? Yep, by mistake there was a missing semi-colon on line 33 of main.cpp – it has been corrected in the file in the posting account and if you haven’t found it yet you should correct the copy of the main.cpp you copied out of the posting account. This should be an easy bug to find/fix. • Should the TeamEvent function be “getExhibition” or “isExhibition”? You should follow the functions/code as they are written in the “header

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123