The classes Datelnfo and Student in different packages 1. Create two packages, calendar, and personal_data 2. Create a class called Datelnfo inside the package calendar 3. The class Datelnfo has only three variables, day (type integer), month (integer), year (integer). 4. The three variables day, month and year, are invisible outside the class Datelnfo. 5. Define a constructor for the class Datelnfo with three-arguments to initialize the variables day, month and vear.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 2CP
icon
Related questions
Question
Q4. The classes Datelnfo and Student in different packages
1. Create two packages, calendar, and personal_data
2. Create a class called Datelnfo inside the package calendar
3. The class Datelnfo has only three variables, day (type integer), month
(integer), year (integer).
4. The three variables day, month and year, are invisible outside the
class Datelnfo.
5. Define a constructor for the class Datelnfo 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 Datelnfo).
9. Create two Person objects for Omar and Rami, Omar's birthDate is
28/8/1998 and Rami's birthDate is 13/9/1996
Transcribed Image Text:Q4. The classes Datelnfo and Student in different packages 1. Create two packages, calendar, and personal_data 2. Create a class called Datelnfo inside the package calendar 3. The class Datelnfo has only three variables, day (type integer), month (integer), year (integer). 4. The three variables day, month and year, are invisible outside the class Datelnfo. 5. Define a constructor for the class Datelnfo 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 Datelnfo). 9. Create two Person objects for Omar and Rami, Omar's birthDate is 28/8/1998 and Rami's birthDate is 13/9/1996
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Software Development
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT