2-1什么是面向对象

What is object? 
object=entity
object may be
        visible
        invisible
Object is variable in programming language.

Object=attributes+services
Data:the properties or status
Operation:the functions

Mapping
From the problem space to the solution one. ​​​​​​​

 C vs. C++
C doesn't support relationship btw data and functions. 
typedef struct point3d{
float x;
float y;
float z;
}Point3d;

void Point3d_print(const Point3d* pd);

Point3d a;
a.x=1;a

2-1什么是面向对象最先出现在Python成神之路

版权声明:
作者:siwei
链接:https://www.techfm.club/p/5397.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>