ate setter() , getter() for the data members. Then create has a relation (Aggregation) between Employ and address. In main class set two addr

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

Write a java program in which 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.

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Development strategies
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning