+ 1
how to write a class Date which consists of three data members ,DD,MM,and YY of type integer
3 Respostas
+ 11
class Date{
int DD;
int MM;
int YY;
}
+ 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
0
Write a class Date which consists of
a. three data members, DD, MM and YY of type integer.??