Question: C++ Program, please provide notes explaining functions if able: Create your own classes and use them to build objects. For each class create an *.h
C++ Program, please provide notes explaining functions if able:
Create your own classes and use them to build objects. For each class create an *.h and *.cpp file that contains the class definition and the member functions. There will also be one file called 'main.cpp' that contains the main() function, and will instantiate the objects and test them.
Create 2 new classes for this project, one will be a 'Shoes' class and one will be a required 'Date' class.
Process: Take assigned class 'Shoe' add to your project new files called Shoe.h and Shoe.cpp and create the new class from scratch in those files. Make 3 important data members that describe the class/object you want to build and the write 2 constructors, 3 get member functions, 3 set member functions, and a toString method. Adjust the main() function to allow the user to input the data members for your class and create an object of that type. Use the toString method to then display the new object on the screen. When the project is complete, both classes/objects should be created and displayed with main().
Do not use the same 3 data types for any class's member variables.
Date class: the data members will be int day; int year; string month; Create a Date class with 2 constructors, 3 get member functions, 3 set member functions, and a toString method. Adjust the main() function to use the Date class.
Be able to input 3 values, one for each member variable. Insert values into the Date object then output a simple message like:
"The Date object is: March 2, 2013"
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
