#1 Download computer science & engineering books free           #2 Display your sponsored posts here. Reach 20,000+ students. Contact: info[at]cpentalk.com for quote           #3 Take the Ultimate Trivia Quiz. See where you rank globally.
+2 votes
in Software Engineering by

2 Answers

+1 vote
by
selected by (user.guest)
 
Best answer

To illustrate the different types of adaptor needed to support sequential composition, hierarchical compostition and additive composition:

1. In sequential composition, Component C is created by composing A and B in sequence i.e. A; B. For example, in an object oriented system, the code of C would be implemented as a call to method A in object class X followed by a call to method B in object class Y.

2. In hierarchical composition, Component C is created from Component A calling component B. In an object oriented program, component C could be a method that calls a method X.A. Within X.B, there is a call to Y.B.

3. In additive composition, Component C is created by integrating the interfaces of component A and component B to create the interface of component C. In an object oriented program, this would be implemented by creating a new class C, which includes the interfaces of classes A and B.

0 votes
by
Welcome to the world of adult Dating loveawake.ru

Related questions

Welcome to CPEN Talk
Solution-oriented students of computer engineering on one platform to get you that

ONE SOLUTION

Chuck Norris is currently suing myspace for taking the name of what he calls everything around you.
...