Question

in java, What are the two major security issues with aggregation and how are these issues...

in java,

What are the two major security issues with aggregation and how are these issues avoided?

Homework Answers

Answer #1

Aggregation is used in Java for code reusability. HAS-A relationship between classes is represented by aggregation.

Issues:

1. There is extra code to be written in the first place, which takes more effort. It is also harder to understand the behaviour of the system. The interaction of the system is less at compile time and more at run time.

2. There are more number of objects than usual while you have to implement object composition.

How to avoid?

Object composition can be done where one or more objects are combined to create a new object.

Since, it has a "HAS-A" relationship, which is better than Inhertitance as it has a "IS-A" relationship between classes.

Thus, Aggregation is more sematically correct than Inheritance.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
2- what are two major differences between brokers (such as security brokers) and depository institutions (such...
2- what are two major differences between brokers (such as security brokers) and depository institutions (such as commercial banks)?
what are the major security, privacy, and ethical implication in data mining? How significant these implication...
what are the major security, privacy, and ethical implication in data mining? How significant these implication are for the business sector?
Think about the ethical issues in the pharmaceutical industry. What are the major issues? What are...
Think about the ethical issues in the pharmaceutical industry. What are the major issues? What are the root causes? What are the possible solutions?
You have funding to provide security for two issues in refugee camps. Which two problems would...
You have funding to provide security for two issues in refugee camps. Which two problems would you address and why? Explain in detail how you would deliver your solutions as well.
two major research issues or obstacles involved in sampling(15mks)
two major research issues or obstacles involved in sampling(15mks)
Discuss how new technologies impact information sharing. What are some issues that come along with this...
Discuss how new technologies impact information sharing. What are some issues that come along with this new technology and how can they be avoided?
Summarize two major unresolved issues risk-related issues of equity REIT returns. Contrast the NAREIT and NCREIF...
Summarize two major unresolved issues risk-related issues of equity REIT returns. Contrast the NAREIT and NCREIF real estate indices as measures of private commercial real estate performance.
Global Safety, Health, and Security Issues: 1. What does HR managers need worry about? 2. How...
Global Safety, Health, and Security Issues: 1. What does HR managers need worry about? 2. How does this effect on company's products of the parts from other countries? (example Iphone- some parts are from China) 3. How can consumers learn about supply chain issues and worker safety concerns when shopping for electronic devices?
what is the major issues that exist in the labor market, and explain what gaps in...
what is the major issues that exist in the labor market, and explain what gaps in measurable hard data exist
identify and describe two major issues and their potential impact for a CEO, operation director,and employee...
identify and describe two major issues and their potential impact for a CEO, operation director,and employee when a health care facility has to down size
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT