+ 1

how to write a class Date which consists of three data members ,DD,MM,and YY of type integer

28th Aug 2017, 11:05 AM
nini
3 Réponses
+ 11
class Date{ int DD; int MM; int YY; }
28th Aug 2017, 11:11 AM
Nithiwat
Nithiwat - avatar
+ 9
Why do you want to write a Date class? You could use Date from the Java time package.... Choose whatever you need ^^ https://docs.oracle.com/javase/8/docs/api/java/time/package-summary.html
28th Aug 2017, 11:50 AM
Tashi N
Tashi N - avatar
0
Write a class Date which consists of a. three data members, DD, MM and YY of type integer.??
28th Sep 2017, 1:20 PM
Kairen Murday
Kairen Murday - avatar