提问 HN:如何学习面向对象设计?

1作者: shivajikobardan8 个月前
我想深入学习继承、抽象和封装。同样,我也想了解接口和抽象类的必要性,并学习如何设计对象。 我正在使用 Java。 我发现了一个看起来很棒的课程,但它不是免费的(就像世界上所有美好的事物一样)。 https://course.ccs.neu.edu/cs3500/ 该课程推荐了《Effective Java》、《设计模式:可复用面向对象软件的基础》(GoF)、《Head First 设计模式》等书籍。但其中大部分书籍更像是风格指南。 我目前正处于一个不理解如何设计面向对象程序的阶段。我一直在疯狂地把所有代码都写在 Main 类里。 我需要一个详细的课程或书籍来学习这些,因为我是一个学习很慢的人。而且我这样做是为了乐趣,所以没有时间限制。 虽然有像 Grady Booch 和 Craig Larman 这样的书,但在我看来它们有点枯燥。但我可能会改变主意。
查看原文
I want to learn inheritance, abstraction and encapsulation in depth. Likewise I want to learn about the need of interface and abstract classes. I want to learn to design objects.<p>I am using Java.<p>I found a course which seems OP but it is not freely available(like all the good things in the world).<p>https:&#x2F;&#x2F;course.ccs.neu.edu&#x2F;cs3500&#x2F;<p>It recommends Effective Java, GoF, Head First Design Patterns etc. But most of those books are more of a style guide.<p>I am currently at a phase where I do not understand how to design object oriented programs. I have been coding everything under Main class like crazy.<p>I need a detailed course, or book to learn this as I am a very slow learner. And I am doing this for fun, so there is no time constraint. There are books like grady booch, craig larman, but they are bit too dry in my opinion. But I might change my mind.