What's OOP? In easy steps
来源:互联网 发布:辱妻杀人案 知乎 编辑:程序博客网 时间:2024/04/28 03:02
2004-10-22 15:24:47 Ryan
Originally, we describe the problem as "What to do first, then what to do next...", so a problem is described as a sequence of operations. This is called "procedural" way of solving problem
2004-10-22 15:25:55 Ryan
the "Procedural" way of solving problem is focusing on the sequences of operations needed to resolve the problem. But on the other hand, "data" is described "as needed for operations". They are not focused.
2004-10-22 15:27:40 Ryan
Later, when real world gets more comprehensive, people has found that it's hard (even not possible) to simply describe problems as a sequence of operations: solutions to problems is no longer straight-forward. So some clever men has turned there eyes from operations to data-objects.
2004-10-22 15:29:30 Ryan
Object-oriented way of solving problems, differed from the good-old procedural way, is that people no longer describe the problem as simply a sequence of operations, but trying to break up the problem into different objects, that is, entities with own data and operations.
2004-10-22 15:30:35 Ryan
So the whole problem is becoming the inter-operations between objects. This made the problem into small sub-problems, which are much easier to analysis and implement.
2004-10-22 15:37:11 Ryan
Object-oriented is mostly represented in analysis and design phases. Newer languages like C++, Java or C# have added language-level support to Object-oriented programmings, like "class", "inheritence" and so forth, but you can still use C to write code that implements an oo-design.
- What's OOP? In easy steps
- Migrate to DB2 in Five Easy Steps
- Learn Decorator Design Pattern in Easy Steps
- Understanding Python Decorators in 12 Easy Steps!
- python - pytest - Very easy sample in steps
- What's new in OpenSolaris200811
- what's delegate in .net?
- What's "new" in JavaScript?
- What's values in SuppressWarning
- What's new in HTML5?
- What's New in iOS
- what's new in vc2015
- What's new in iOS11?
- From Java to Groovy in a few easy steps
- How to become an iPhone developer in eight easy steps
- How to write a Linux virus in 5 easy steps
- How To Defrag Your Mind In 5 Easy Steps
- Install Firefox 11 in 5 easy steps on Linux
- Jmail发送附件
- JS中的一些扩充函数,判断输入的内容
- User Account Creation
- Web crawler作业报告
- 第一次有自己的BLog,还不知道怎么定义css呢!
- What's OOP? In easy steps
- 開心一刻:可愛的小孩的對話
- J2ME 2D小游戏入门之旅(一)游戏的框架
- 计算机族必喝的茶
- test
- asp调用存储过程!转贴
- 在DELPHI应用程序中使用DLL
- Eclipse资源
- Log4j优化