Problem: Write a C++ program of a Class Date which displays the date. Use the subsequent requirements:
- Three data members (day, month, year).
- Parameterized constructor.
- Copy constructor.
- Display function to print the date (Day / Month / year).
- In the main function create Object1 and call Display function. Create object2 using object1. Call Display function after each creation.
Compare the output for each object.
You need to prepare a program to implement a date class and the solution must be error free and compile correctly on first attempt.