0
Исправлено

ebook design pattern (builder pattern) : constructor and reset method in CarManualBuilder class

Ranjit Ranjan 6 лет назад обновлен anonymous 6 лет назад 2

Let me know if below observations are correct.

  1. constructor name should be CarManualBuilder
  2. reset method should return new CarManualBuilder()

Ответ

Ответ
Исправлено

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

reset method should  have : this.Manual= new Manual()

Ответ
Исправлено

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

Сервис поддержки клиентов работает на платформе UserEcho