- Write a WebPage class which includes
The following integer data members
- Number of hits on the page
- Number of messages posted on the page
- Number of downloads from the page
The following member functions
- Default constructor initializes all data members to zero
- Parameterized constructor initializes all data members to received values
- An increment function for each data members to increase them by 1
- Activity() function that return total activity of webpage: hits + messages + downloads
- Write a main function that declare and initialize imamUnivPage object.
- Write the statements that increase number of hits by 2, messages by 3, and downloads by 1.
- Display the number of hits, messages, and downloads for the page as well as the total activity.