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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!