RE: Inheritance of aggregate
| Newsgroups | gmane.comp.programming.domain-driven-design |
|---|---|
| Message-ID | <[email protected]> |
Assuming that the life-cycle of aggregates are managed independently (i.e with identities of their own), inheritance would have to be from an abstract base class. http://caminao.wordpress.com/about/objects-with-attitudes/ Remy. ---In [email protected], <[email protected]> wrote: A parent product have some sub-class . The common properties of all the sub-class are put inside the parent product class .Then each subclasses contain their own set of properties and specific behaviour. I then found that many suggest to avoid the inheritance of an aggregate. Instead, create a single product aggregate and create a descriptor object (which is a value object) that can discriminate between the different product subclass. So what should my product aggreagate look likes if I use the "descriptor object" approach ? Thanks __._,_.___ Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___