what I do in this program?

Write a C++ class including the code of the functions to maintain information about a Student. The class Student data members are ID, firstName, lastName, and dateOfBirth. The member dateOfBirth is struct of DateType which has 3 components day and month and year. The default values for the ID is 0, and for the firstName and lastname are "". In addition, the day must be within 1-31, a month must be within 1-12, and a year within

1900-2100. The class Date function members include the following:

Constructor function with default valued parameter to initialize all data members, a set function for all data members, a get function for data member, a print function to print the data in dd/mm/yyyy format, and Destructor function to print the message “Date Object Terminated”.

PART B

Write a C++ program that defines object StObject of type Student and pointer StPtr that pointed to this object. Set, get, and print the values of object StObject using the pointer StPtr.

Note:
I want to know some information to do this program.
Last edited on
What information do you want to know?
Topic archived. No new replies allowed.