In this exercise, you complete a program that uses the FormattedDate class shown in Figure 15-1 in

Question:

In this exercise, you complete a program that uses the FormattedDate class shown in Figure 15-1 in the chapter. Follow the instructions for starting C++ and viewing the TryThis8.cpp file, which is contained in either the Cpp8\Chap15\TryThis8 Project folder or the Cpp8\Chap15 folder. (Depending on your C++ development tool, you may need to open this exercise’s project/solution file first.) In the TryThis8 FormattedDate.h header file, enter the #include and using namespace std; directives. Then enter the class definition from Figure 15-1. Next, complete the TryThis8.cpp file by entering the appropriate instructions. Use the comments as a guide. Test the program appropriately.

Syntax // declaration section class className { public: public attributes (data members) public behaviors (member methods) private:- private attributes (data members) private behaviors (member methods) colon colon semicolon //implementation section member method definitions] Example T/ declaration section class FormattedDate { public: FormattedDate();- FormattedDate(string, string, string); void setDate(string, string, string); string

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: