Question: Language: C++ Create a class called Date that includes three pieces of information as instance variablesa month (type int), a day (type int), and a
Language: C++
Create a class called Date that includes three pieces of information as instance variablesa month (type int), a day (type int), and a year (type int). Your class should have a constructor that initializes the three instance variables and assumes that the values provided are correct. Provide a set and a get function for each instance variable. Provide a function displayDate that displays the month, day, and year separated by forward slashes (/). Write a main function to test the class Dates capabilities.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
