0
Fixed

Different method name on pseudo code of Factory method

Harvan Irsyadi 5 years ago updated by anonymous 5 years ago 1

Hi Author,

I love your book "Deep dive into Design Pattern".

While reading the book, i found an inconsistence of method declaration and the uses. Page 68-69. Here is the code:

"

Class Dialog is

    method renderWindow()


Class Application is

    field dialog: Dialog

    

    method initialize()

    method main() is

        dialog.initialize() (initialize() own by Application not Dialog)

        dialog.render() (should be renderWindow())

"

I know it's only pseudo code, but the reader feels uncomfortable.

Thanks.

Answer

Answer
Fixed

Thanks a lot! That's indeed a bug. I've just fixed it. The fix will be on site within an hour.

GOOD, I'M SATISFIED
Satisfaction mark by Harvan Irsyadi 5 years ago
Answer
Fixed

Thanks a lot! That's indeed a bug. I've just fixed it. The fix will be on site within an hour.