T
thespid
I have completed the first part of my coursework and the second part
of my coursework requirement is as follows :-
"To reduce the risk of introducing bugs, you are not allowed to make
changes to existing classes. In addition it should be possible to
deploy the application with or without testing code in place. In
either case the application code should be unchanged."
I have made main either call LibraryFrame or DebugLibraryFrame by
parameter "debug" being passed in. DebugLibraryFrame is created as an
abstract factory to create a DebugLibrary class and this then
instantiates concrete classes through the same interfaces a
LibraryFrame would have. I could go ahead and create a whole Debug*
class structure but this seems to defeat the purpose of the exercise.
I guess I need to decorate the 3 classes which are asked for, but how
can I decorate them without making changes to existing classes?
of my coursework requirement is as follows :-
"To reduce the risk of introducing bugs, you are not allowed to make
changes to existing classes. In addition it should be possible to
deploy the application with or without testing code in place. In
either case the application code should be unchanged."
I have made main either call LibraryFrame or DebugLibraryFrame by
parameter "debug" being passed in. DebugLibraryFrame is created as an
abstract factory to create a DebugLibrary class and this then
instantiates concrete classes through the same interfaces a
LibraryFrame would have. I could go ahead and create a whole Debug*
class structure but this seems to defeat the purpose of the exercise.
I guess I need to decorate the 3 classes which are asked for, but how
can I decorate them without making changes to existing classes?