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 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
Step: 1
include using namespace std class Date private int day int month int year ...See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started