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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Of this Term.h I need .cpp file of this header file help me.

1 #include <iostream>
2 using namespace std;
3 // Implementation of Term class.
4 class Term
5- {
6
7
8
9
10
11
12
13-
HHHHHH87~~~~~~~~~
14
15
16
17
18
19
20
21 -
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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()
{
}
Date getEndingDate()
{
{
return startingDate;
return endingDate;
=
}
// constructor
Term(string termName, startingDate, endingDate)
38
39-
40
41
42
43
}
44 } // end of Term class
this.termName
this.startingDate
this.endingDate
=
termName;
startingDate;
endingDate;
Transcribed Image Text:1 #include <iostream> 2 using namespace std; 3 // Implementation of Term class. 4 class Term 5- { 6 7 8 9 10 11 12 13- HHHHHH87~~~~~~~~~ 14 15 16 17 18 19 20 21 - 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 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() { } Date getEndingDate() { { return startingDate; return endingDate; = } // constructor Term(string termName, startingDate, endingDate) 38 39- 40 41 42 43 } 44 } // end of Term class this.termName this.startingDate this.endingDate = termName; startingDate; endingDate;
Expert Solution
Step 1

 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.

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Header Files
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education