Write a program to display the name and birthday of a Person. Create a class Person. It
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a program to display the name and birthday of a Person.
- Create a class Person. It has first name and last name.
- Create a class Date. It has day, month and year.
Using composition, create a class called BirthdayInfo.
Write a test program which creates an instance of the Birthday Info class, and displays the name and birthday for that person.
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date: