Object Oriented Programming
Posted petewell
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Object Oriented Programming相关的知识,希望对你有一定的参考价值。
原文引用https://www.dazhuanlan.com/2019/08/25/5d622a3ae2eb7/
Object-Oriented Programming
Object-Oriented Programming A.K.A : OOP
is a way(paradigm) of building computer programs so that they are both intuitive to humans(problem side) and computers(solution side).
Objects have attributes and methods.
Attributes are basically the characteristics or properties, or state about the object. Like a Person has a name, gender and age.
Methods are actions or functionalities that can be performed or executed on objects from somewhere else in the programs. Like a Light can be On and Off.
If you build your programs using OOP, you basically build a collection of objects that can interact with each other by sending messages.
Features
以上是关于Object Oriented Programming的主要内容,如果未能解决你的问题,请参考以下文章
Process-oriented vs. Object-oriented