Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

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

Step: 1

include using namespace std class Date private int day int month int year ... blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction to Java Programming, Comprehensive Version

Authors: Y. Daniel Liang

10th Edition

133761312, 978-0133761313

More Books

Students explore these related Programming questions