What's OOP? In easy steps

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.

 

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值