subject

Examine the following class definition: class DateType
{
public:
void Initialize(int, int, int);
int GetYear() const; // returns year
int GetMonth() const; // returns month
int GetDay() const; // returns day
private:
int year;
int month;
int day;
};
Which of the following statements in a client program correctly prints out the day of the variable day1 of type DateType?
A. cout << day1.GetDay;
B. cout << day1.GetDay();
C. cout << GetDay. day1;
D. cout cout << GetDay(day1);
E. The day cannot be printed by a client program.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 02:00
How are we able to create photographs differently than 100 years ago? explain your answer in relation to your photograph you selected.
Answers: 1
question
Computers and Technology, 24.06.2019 14:00
Text or graphics that print at the bottom of every page are called footings footers headers headings
Answers: 1
question
Computers and Technology, 24.06.2019 16:00
How are roger williams, james oglethorpe, and william penn similar?
Answers: 3
question
Computers and Technology, 25.06.2019 07:00
Asap 50 points ( paragraph pls) discuss the role of the concept behind the "internet of things (iot)" in today's digitally connected society.
Answers: 2
You know the right answer?
Examine the following class definition: class DateType
{
public:
void Initialize(...
Questions
question
Mathematics, 26.06.2019 19:20
question
Mathematics, 26.06.2019 19:30