Write a class called Book that has two private member variables called page (integer) and topic (string). It also has a static private member variable called count (integer). This class has only one constructor with default argument for page and topic. Write this constructor. Also overload the addition operator for this class such that it will add an integer value to the page variable of the book. For example when in main we say:
book2 = book1 + 4; then 4 will be added to the value of page. Also show how main can use the count variable to find out how many book objects are there.
The things that you should write:
1- Class header defining member variables, addition operator overloading, setters, getters and constructor with default argument.
2- Implementation of constructor with default argument and the addition operator overloading as shown above.