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
Active Questions
  • A gigantic warehouse stores approximately 40 million empty aluminum beer and soda cans.​ Recently, a fire...
    asked 10 minutes ago
  • 5. There are many complaints from passengers about the late running of buses on a particular...
    asked 14 minutes ago
  • (1 point) A survey of 1780 people who took trips revealed that 117 of them included...
    asked 18 minutes ago
  • Implement the following circuit to test the characteristics of a D flip flop. Note: Using a...
    asked 21 minutes ago
  • Next, suppose you add the unemployment rate, as a variable, to the regression model above and...
    asked 23 minutes ago
  • In a recent random sample, where 600 adults were surveyed, 16.4% indicate that they have fallen...
    asked 26 minutes ago
  • Suppose that you estimate the following regression: SALES = 5.467-1.034(PRICE) A) How do you interpret the...
    asked 31 minutes ago
  • Consider the following scenario: An industrial seller of grass seeds packages its product in 50-pound bags....
    asked 34 minutes ago
  • ​(Bond valuationlong dash—zero coupon​) The Latham Corporation is planning on issuing bonds that pay no interest...
    asked 50 minutes ago
  • The article “Doctors Cite Burnout in Mistakes” reported that doctors completing residency have financial struggles that...
    asked 52 minutes ago
  • The frame for an education survey includes 2000 high schools, each of which contain 1000 students....
    asked 54 minutes ago
  • Professor Gersch grades his midterms and then takes a sample of eight tests and notices their...
    asked 1 hour ago