Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

By using C++ Programming Language.Please put comment in program so that i can understand it. 1. Create the program that includes: a. Date.h b. Date.cpp

By using C++ Programming Language.Please put comment in program so that i can understand it.

image text in transcribed

1. Create the program that includes: a. Date.h b. Date.cpp c. DateMain.cpp at has been divided into 2: i Date.h includes the declaration of class Date that has been divide 1. private member: data member day, month and year (all are integer 2. public member: a. Constructor that will initialize day=10, month=12 and year-2001 b. Destructor c. Method setDate() will receive the value for day, month and year. This method will be used to give values to the data member for class Date. d. Method printDate() will be used to print the date that has been set by method set Date () before. ii. Date.cpp includes: 1. The implementation of constructor, method set Date() and method print Date(). iii. DateMain.cpp includes: #include using namespace std; #include "Date.h" void main() { Date a, b; b.setDate (25, 12, 2005); cout

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions