Q4. The classes Datelnfo and Student in different packages 1. Create two packages, calendar, and personal_data 2. Create a class called DateInfo inside the package calendar 3. The class DateInfo has...


Q4. The classes Datelnfo and Student in different packages<br>1. Create two packages, calendar, and personal_data<br>2. Create a class called DateInfo inside the package calendar<br>3. The class DateInfo has only three variables, day (type integer), month<br>(integer), year (integer).<br>4. The three variables day, month and year, are invisible outside the class<br>DateInfo.<br>5. Define a constructor for the class DateInfo with three-arguments to initialize<br>the variables day, month and year.<br>6. Write a method called getDateFormat, that returns a date format example;<br>19/4/2016 (the method returns a String type for simplification)<br>7. Create a class called Person inside the package personal_data.<br>8. The Person class has only two variables, name (type String) and birthDate<br>(type DateInfo).<br>9. Create two Person objects for Omar and Rami, Omar's birthDate is 28/8/1998<br>and Rami's birthDate is 13/9/1996<br>

Extracted text: Q4. The classes Datelnfo and Student in different packages 1. Create two packages, calendar, and personal_data 2. Create a class called DateInfo inside the package calendar 3. The class DateInfo has only three variables, day (type integer), month (integer), year (integer). 4. The three variables day, month and year, are invisible outside the class DateInfo. 5. Define a constructor for the class DateInfo with three-arguments to initialize the variables day, month and year. 6. Write a method called getDateFormat, that returns a date format example; 19/4/2016 (the method returns a String type for simplification) 7. Create a class called Person inside the package personal_data. 8. The Person class has only two variables, name (type String) and birthDate (type DateInfo). 9. Create two Person objects for Omar and Rami, Omar's birthDate is 28/8/1998 and Rami's birthDate is 13/9/1996

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here