0
已修复

Different method name on pseudo code of Factory method

Harvan Irsyadi 4 年 前 更新人: anonymous 4 年 前 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 4 年 前
解答
已修复

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

UserEcho 的客户支持