Question: The following question depends on the program code below. A class Event is defined as follows. class Event{ public: Event(std::string description); Event (const Event& e);

The following question depends on the program code below. A class Event is defined as follows. class Event{ public: Event(std::string description); Event (const Event& e); private: std::string description; long id; int eventCount; }; Q6. The data member eventCount is supposed to record the number of all the objects of class Event. The above code contains the logic error rather than the compiling error. 6.1 Please find the place to fix the error; and 6.2 please write the code to initialize the eventCount value by zero
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
