1 #include 2 using namespace std; 3 // Implementation of Term class. 4 class Term 5 - { 6 7 8 9 _0 .1 _2 _3 4 _5 _6 _7 .8 _9 0 1. 2 23 4 5 6 7 28 19 =0 1 2 -3 4- 5 6 7 8 9 private: string termName; Date startingDate; Date endingDate; public: // mutator methods void SetTermName(string termName) { this.termName = termName; } void SetStartingDate(Date startingDate) { this.startingDate startingDate; } void SetEndingDate(Date endingDate) { this.endingDate = endingDate; } // accessor methods string getTermName() { return termName; } Date getStartingDate() { return startingDate; } Date getEndingDate() { { return endingDate; // constructor Term(string termName, startingDate, endingDate) this.termName = termName; this.startingDate = startingDate; this.endingDate = endingDate; -0 -1 -2 -3 } 4 } // end of Term class
Of this Term.h I need .cpp file of this header file help me.
Header files are executed code which contains definitions of the functions for performing particular task, which can be included into source code when there is need of those functions. There are two types of header files predefined header files and user defined header files. Predefined header files are header files are header files which contains definition of predefined functions such as conio.h header file which contain definition of clrscr() and getch () function. So when programmer have to use these function in there program they must have to include conio.h header file in there program. User defined header files are header files which are created by programmer which contains implementation of user defined functions which can be included in source file by programmer when those functions are needed..Cpp files are source code which contain main function and includes header files, that is will be executed by programmer for performing particular task.
Step by step
Solved in 3 steps with 2 images