Code Monkey home page Code Monkey logo

Comments (13)

aitanjiujue avatar aitanjiujue commented on May 9, 2024 2

三 工厂模式介绍中 ifelse写错了

from codeguide.

fuzhengwei avatar fuzhengwei commented on May 9, 2024 1

@hashming
很棒!!!总的来说多了接口这个概念,把三个业务都要实现的功能抽象了出来

头像很帅,欢迎继续阅读,打卡留言总结😄

from codeguide.

hhjuliet avatar hhjuliet commented on May 9, 2024 1

1 == commodityType,int == Integer这种写法不符合java代码规范,当int值超出127时会报错,建议改成equals

from codeguide.

taodehong avatar taodehong commented on May 9, 2024 1

@hhjuliet
1 == commodityType,int == Integer这种写法不符合java代码规范,当int值超出127时会报错,建议改成equals

from codeguide.

fuzhengwei avatar fuzhengwei commented on May 9, 2024

@aitanjiujue
三 工厂模式介绍中 ifelse写错了

修复完成,感谢😄

from codeguide.

lixiao888 avatar lixiao888 commented on May 9, 2024

支持下,很不错的示例,不过本示例看上去更像是简单工厂模式

from codeguide.

SupremeIdol avatar SupremeIdol commented on May 9, 2024

整理重构会你会发现代码结构清晰了 语句不通顺

from codeguide.

fuzhengwei avatar fuzhengwei commented on May 9, 2024

@SupremeIdol
整理重构会你会发现代码结构清晰了 语句不通顺

收到,感谢😄

from codeguide.

hashming avatar hashming commented on May 9, 2024

很棒!!!总的来说多了接口这个概念,把三个业务都要实现的功能抽象了出来

from codeguide.

fuzhengwei avatar fuzhengwei commented on May 9, 2024

@hhjuliet
1 == commodityType,int == Integer这种写法不符合java代码规范,当int值超出127时会报错,建议改成equals

对的!文中更多为了简化了,使用equal更加标准 😄

from codeguide.

x54256 avatar x54256 commented on May 9, 2024

这明明是简单工厂模式呀

from codeguide.

bxguo avatar bxguo commented on May 9, 2024

为什么感觉不到和策略模式的区别嘞

from codeguide.

fuzhengwei avatar fuzhengwei commented on May 9, 2024

@bxguo
为什么感觉不到和策略模式的区别嘞

写写案例感受下😄

from codeguide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.