Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

When do you prefer to use composition than aggregation?

Answer Posted / naveen sisupalan

Composition is a stronger form of aggregation. If you are
sure that the life of the part is managed entirely by the
whole then you can go for composition. Without whole, the
part can't exist also.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give any criteria when you use an abstract class and an interface?

894


Is it possible to create partial structs, interfaces and methods?

890


Is @functionalinterface annotation mandatory to define a functional interface? What is the use of @functionalinterface annotation? Why do we need functional interfaces in java?

1101


Explain about abstraction?

1023


What are different ways to create string object?

1041


What if we make the method as abstract in another interface?

920


What is meant by overloading functions and operators?

976


State some of the advantages of object oriented programming?

1047


Is it possible to provide method implementations in java interfaces? If possible, how do we provide them?

891


What are abstract classes?

950


What is data encapsulation and what's its significance?

999


What is the benefit of using inheritance?

989


Define Data Abstraction. What is its importance?

930


Can a function be overloaded based on return types?

898


Can you instantiate an abstract class and what is an inner class?

900