Question: User-Defined Classes /Pointers Q1. (25 marks) Consider the following class: #ifndef DATEH #define DATE H - class Date public: Date (int-l, int-1, int-2000)11 sets day,
User-Defined Classes /Pointers


Q1. (25 marks) Consider the following class: #ifndef DATEH #define DATE H - class Date public: Date (int-l, int-1, int-2000)11 sets day, month, year void setDate (int, int, int); // sets the date void printDate O const: // prints date to the screern private: int day; int month; int year; #endif /* DATEH*/ - - /* date.cpp */ # include #include "date . h"
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
