Create a class Address which has its own information such as city, state, country. Create A constructor to initialize the value of these data members, also create setter() , getter() for the data members . Create another class  Employees which has data members such as Employee Name , Employ  Id , Date_of_Birth, gender A constructor to initialize the value of these data members .Also  create setter() , getter() for the data members. Then create has a relation (Aggregation) between Employ and address. In main class set two addresses for two Employees. And display full information of Employ along with Address. in java

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter11: Advanced Inheritance Concepts
Section: Chapter Questions
Problem 7PE
icon
Related questions
Question
100%

Create a class Address which has its own information such as city, state, country. Create A constructor to initialize the value of these data members, also create setter() , getter() for the data members . Create another class  Employees which has data members such as Employee Name , Employ  Id , Date_of_Birth, gender A constructor to initialize the value of these data members .Also  create setter() , getter() for the data members. Then create has a relation (Aggregation) between Employ and address. In main class set two addresses for two Employees. And display full information of Employ along with Address. in java

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
Class
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
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT