Thing-in-Java(P57)
来源:互联网 发布:godaddy备案域名购买 编辑:程序博客网 时间:2024/06/04 19:56
The answer is the primary twist in object-oriented programming: the
compiler cannot make a function call in the traditional sense. The
function call generated by a non-OOP compiler causes what is called early
binding, a term you may not have heard before because you’ve never
thought about it any other way. It means the compiler generates a call to a
specific function name, and the linker resolves this call to the absolute
address of the code to be executed. In OOP, the program cannot
determine the address of the code until run time, so some other scheme is
necessary when a message is sent to a generic object.
翻译:,
这个问题的答案也是面向对象编程最巧妙的设计:编译器不能确保一个函数以传统的方式被调用,这个函数被一个不是面向对象的编译器调用会引起所谓的早期绑定,这个术语你也许从来没听过,因为你没有想过函数调用的其他方式。这意味着它创建一个特定的函数名的调用,这个连接到绝对的代码地址从而执行。在面向对象编程中,直到运行时才能确定那段代码的地址,所以当一个信息发送给一般的对象,采用其他的方式是必须的。
- Thing-in-Java(P57)
- Thing-in-java
- Thing-in-Java(P58)
- Thing-in-Java(P61)
- 《Thing in java》多态
- 《THING IN JAVA》 13章字符串-读书笔记
- 《THING IN JAVA》 9章接口-读书笔记
- 《THING IN JAVA》 7章复用类-读书笔记
- 《THING IN JAVA》 8章多态-读书笔记
- 《THING IN JAVA》 12章通过异常处理错误-读书笔记
- 《THING IN JAVA》 6章访问权限控制-读书笔记
- 《Thing in Java》对final关键字的介绍之数据
- 《Thing in java》上塑造型的笔记
- the new thing in webkit3
- <java编程思想>(thing in java) 阅读笔记(第一章至第六章)
- <java编程思想>(thing in java) 阅读笔记(第七章至第十章)
- <java编程思想>(thing in java) 阅读笔记(第十一章至第十二章)
- <java编程思想>(thing in java) 阅读笔记(第十三章至第十五章)
- 优秀是一种习惯,习惯却是来自于思维的境界
- 移动产品交互设计-屏幕大小
- GTM900的数据模式和命令模式切换
- c++强制类型转换:dynamic_cast、const_cast 、static_cast、reinterpret_cast
- 工程目录结构模板设计
- Thing-in-Java(P57)
- 【狂转】某个N人的访谈记录
- vc6.0下简单使用CTreeCtrl(转)
- dividing zoj 1149, PKU 1014
- ok6410 开发板屏幕校准
- 几个站点...
- Python SocketServer 分析
- 时间片轮转算法和优先级调度算法 C语言模拟实现
- WCF4.0 –- RESTful WCF Services (1) (入门)