Question: NOTE: plss DO IT IN 45MINs plsss i will give UPVOTE definetly!!! its JAVA theory question... plss do it in 45mins whatever you completed in
NOTE:
plss DO IT IN 45MINs plsss i will give UPVOTE definetly!!!
its JAVA theory question...
plss do it in 45mins whatever you completed in 45mins you can send it. ITS VERY IMPORTANT!!
you can decrease steps or whatever to send it on time!!!!
Write the definition for a class called Difference that accepts the date of birth of two friends and finds the elder and younger among the two. The data members are date, month, and year.
The class has the following member functions:
void set(name, int, int, int) - to assign a date of birth of a person
void disp() - to display the elder and younger among the two
Difference validate (Difference) - to check if the given dates are valid or not in terms of date, month, and year (not greater than the current date)
1. Write the definitions for each of the above member functions.
2. Write the main function to create two objects. Set the value in two objects and call validate () to check the dates
3. Also display the elder and younger among the two.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
