0
Виправлено

Different method name on pseudo code of Factory method

Harvan Irsyadi 6 років тому оновлено anonymous 6 років тому 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.

Відповідь

Відповідь
Виправлено

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

ДОБРЕ, Я ЗАДОВОЛЕНИЙ
Позначка задоволеності від Harvan Irsyadi 6 років тому
Відповідь
Виправлено

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