Aggregate pattern: Difference between revisions

Content deleted Content added
DabMachine (talk | contribs)
Dpv (talk | contribs)
m Disambiguation link repair - You can help! (Object)
Line 4:
In [[computer programming]], an '''aggregate pattern''' is a [[Design pattern (computer science)|design pattern]].
 
Members of a common [[Subclass (computer science)|subclass]] are each known to have certain [[Method (computer science)|method]]s. These methods return information about the state of that particular [[object (computer science)|object]]. It does happen that an application is concerned with an aggregation, or amalgamation, of data from several object of the same type. This leads to code being repeated around the program:
 
my $subtotal;