Erm, is the Composite pattern even on the exam? Last time I checked it's just the Factory, Singleton and DAO patterns.
Thanks.
About Question enthuware.ocpjp.v7.-2-.1170 : Is the Composite pattern on the exam?
Moderator: admin
-
- Posts: 53
- Joined: Fri Sep 20, 2013 7:20 am
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1170 : Is the Composite pattern on the exam?
No, it is not officially on the exam but some candidates have reported seeing this pattern in the options.
HTH,
Paul.
HTH,
Paul.
-
- Posts: 53
- Joined: Fri Sep 20, 2013 7:20 am
- Contact:
-
- Posts: 38
- Joined: Fri Nov 13, 2015 4:40 am
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1170 : Is the Compos
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.
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.
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1170 : Is the Compos
That is a fair point. "Limitation" is probably more suitable word than drawback.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.
Paul.
Who is online
Users browsing this forum: No registered users and 6 guests