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

1作者: shivajikobardan26 天前原帖
我想深入学习继承、抽象和封装。同样,我也想了解接口和抽象类的必要性。我希望学习如何设计对象。 我正在使用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.