where are three concepts of the oop

来源:互联网 发布:计划任务软件 编辑:程序博客网 时间:2024/05/16 14:19

oop  the acronym of the obejct oriented programming . encapulation ,polymorphism , inheritance are the three key features. abstraction is also important in oop.

well,then what problems they solve ?

both encapsulation and abstraction slove the problem of complexity in  different dimension. encapsulation only exposes the required details to the object to be accessed by the caller ,it forbid the certain members to be accessed

the abstraction not only hides the details but also provides the basis for your application to grow and change



原创粉丝点击