Inheritance of aggregate
| Newsgroups | gmane.comp.programming.domain-driven-design |
|---|---|
| Message-ID | <[email protected]> |
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 inh eritance 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 __,_._,___