Introduction to Object-Oriented

Object-Oriented process is Object-Oriented analyze -> Object-Oriented design -> Object-Oriented program.

1.       Application depends on requirement

Generally speaking, technique appeared later than requirement. When people’s requirements come out, enterprises will be to develop or to apply a new technique. Why? That’s because the common purpose of enterprises is profit. It is risk for an enterprise to develop a new technique before requirement. If the new technique could not be applied, the enterprise will lost a lot of money. It is different from institutes. So enterprises do not feed many researchers. High degrees could not make more profit for a company, especially medium and small company.

2.       Software process

Validate requirement -> Decide technique -> Analyze roles -> Develop process

Software is a mapping from realistic business to computer logic.

We are programming for software life-force and nation’s productivity.

Traditional programming: Loose Mess Bad Low

To resolve this, the core is methodology.

Set up frame, then analysis, break up the functions.

 

Object-Oriented Methods

The core is abstract. Abstract objects of real business. An object is an instance of a class, and objects are elements of systems. Object includes attributions and behaviors. Objects can communicate with other objects and the method is to access attributions or behaviors of others.

Encapsulation

Combine data and behavior in one package and hide the implementation of the data from the user of the object. Make data steady.

Hide the details of implementation of a class

Make users access data using an interface

Make the code more maintainable

Inheritance

The idea behind inheritance is that you can create new classes that are built on existing classes.

Inheritance makes code more reliable and simple

Improve ability of reuse

 

Polymorphism

Polymorphism is the ability to have many different forms. Make up while casting.

 

When we analyze a system, the progress is to abstract the objects, to allocate responsibilities for objects and to define the relationships between objects.

 

Relationships between objects

Dependence ("uses–a")

Aggregation ("has–a")

Inheritance ("is–a")

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值