Question: Write a c++ program which consists of two classes: 1. Date 2. Student First class Date should contain three data members: Day Month Year

Write a c++ program which consists of two classes: 1. Date 2. Student First class Date should contain three

Write a c++ program which consists of two classes: 1. Date 2. Student First class Date should contain three data members: Day Month Year Date also contain following member functions: Setter function. Getter function. showdate() Now second class Student should have following three data members: ST ID Name Ad date wwwwwwwww Where ID and Name are char pointer while Ad date (Date of Admission) type Date. Student class should contain two member functions: Display() setdate() Now in main function create an object of Class Student and call the member functions with it. Sample output: Name: ID: Admission Date: Ali is of BC020400000 12-08-2008

Step by Step Solution

3.36 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

include using namespace std class Date private int day int month int year ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!