我需要一些很好的面向对象设计的例子 [英] I need some good examples of Object Oriented Design

查看:76
本文介绍了我需要一些很好的面向对象设计的例子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在向一些我不能说是真正的初学者但没有那么多编程背景的学生教授OOP&D +应用程序体系结构.他们已经被告知猫的简单例子是继承自animal和Car类,等等.但是他们确实没有编码经验.因此,我真正需要的是一些实际程序的小例子,以帮助他们了解OO的工作原理,以便我继续进行Architecture.我找到了一些不错的示例来浏览诸如屏幕录像机或文本文件阅读器之类的文章,但我仍在寻找更多示例.我也欢迎您对教学材料有任何建议.

I''m teaching OOP&D + Application architecture to some students who I can''t say are real beginners but don''t really have all that much background of programming. They already have been told those simple examples of cat inherits from animal and the Car class, etc. But they really don''t have coding experience. SO what I really need are some small examples of real programs to help them understand how OO works so I can go on with Architecture. I have found some nice examples browsing the articles like a screen recorder or a text file reader but I''m still looking for more. I also welcome any suggestions you have on teaching the material.

推荐答案

如果学生是编程的初学者,那么如果您真正地学习它,可能会更值得-world样本,例如猫从猫科动物继承"等.这是因为它们将更多地与此类示例相关联,而不是与文本阅读器等相关联.但是,对于经验丰富的学生,文本阅读器类型的样本应该是合理的.

ATM的OOD [
If the student is a beginner to programming, it may actually be more worthwhile if you take them through real-world samples like "cat inheriting from feline" etc. This is because they will associate more with these type of examples rather than text readers etc. However, for more experienced students a text reader type of sample should be reasonable.

This OOD for an ATM[^] might be something useful to you.


不是一个非常有效的老师,IMO,如果您无法向学生解释这一点或已经制作了示例.
Not a very effective teacher, IMO, if you can''t explain this to your students or have examples already made.


这篇关于我需要一些很好的面向对象设计的例子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆