读Thinking in c++笔记

来源:互联网 发布:淘宝能寄到德国吗 编辑:程序博客网 时间:2024/06/05 03:22
读Thinking in c++第二版,读到了late binding,有段话不是很明白,先加下来吧。但觉得很有意义。
To perform late binding,the C++ compiler inserts a special bit of code in lieu of the absolute call.
this code calculates the address of the function body, using information stored in the object(this proces is covered in great detail in Chapter15).thus,each object can behave differently according to the contents of that special bit of code.When you send a message to an object,the object actually does figure out what to do with that message.
原创粉丝点击