HideInLight
Expert Member
- Joined
- Oct 31, 2006
- Messages
- 4,600
- Reaction score
- 1,061
Ya, but the class needs to be written in full. ie it should be compiled without problems. Syntactical errors will cost you marks.
The factory method pattern's easy, isn't it?We only need to know 5 patterns for the exam: Factory Method, Singleton, MetaObject, Serializer and Memento.
Doesn't have to be compiled, can only give what is asked or relevant.
But yeah ShapeFactory(); should be in there.