Page 1 of 1
About Question enthuware.ocpjp.v7.-2-.1170 : Is the Composite pattern on the exam?
Posted: Thu Sep 26, 2013 10:52 am
by Student
Erm, is the Composite pattern even on the exam? Last time I checked it's just the Factory, Singleton and DAO patterns.
Thanks.
Re: About Question enthuware.ocpjp.v7.2.1170 : Is the Composite pattern on the exam?
Posted: Thu Sep 26, 2013 6:36 pm
by admin
No, it is not officially on the exam but some candidates have reported seeing this pattern in the options.
HTH,
Paul.
Re: About Question enthuware.ocpjp.v7.2.1170 : Is the Composite pattern on the exam?
Posted: Fri Sep 27, 2013 1:45 pm
by Student
OK thanks.
Re: About Question enthuware.ocpjp.v7.2.1170 : Is the Compos
Posted: Thu Jan 21, 2016 9:57 am
by toolforger
Option 4 seems incorrect.
I agree that Composite does (in a sense) restrict what the aggregate functionality can do, but that's not a drawback, that's just how Composite is defined, i.e. a restriction on the scenarios where Composite is applicable
It's just as a bicycle not having a motor is not a drawback, but just the definition of a bicycle. If you want a motor you buy a motorcycle.
Re: About Question enthuware.ocpjp.v7.2.1170 : Is the Compos
Posted: Thu Jan 21, 2016 10:17 am
by admin
toolforger wrote:Option 4 seems incorrect.
I agree that Composite does (in a sense) restrict what the aggregate functionality can do, but that's not a drawback, that's just how Composite is defined, i.e. a restriction on the scenarios where Composite is applicable
It's just as a bicycle not having a motor is not a drawback, but just the definition of a bicycle. If you want a motor you buy a motorcycle.
That is a fair point. "Limitation" is probably more suitable word than drawback.
Paul.