关于Inside C++ Object Model! 的一个问题?

mimi_eleven 2002-04-16 12:20:06
老侯翻译的Inside C++ Object Model里 p100页上说:一般而言,具体继承(相对于虚继承)并不会增加空间或存取时间上的额外负担,与p104页上所说的有些矛盾!!!
请解释! 谢谢了
...全文
51 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
mimi_eleven 2002-04-17
  • 打赏
  • 举报
回复
具体继承(相对于虚继承)到底会不会增加空间或存取时间上的额外负担???
neptunez 2002-04-17
  • 打赏
  • 举报
回复
会增加vptr的负担吧?如果由virtual functions
123123123 2002-04-16
  • 打赏
  • 举报
回复
问题是啥?
prototype 2002-04-16
  • 打赏
  • 举报
回复
what does it say on page 104?
Inside the C++ Object Model focuses on the underlying mechanisms that support object-oriented programming within C++: constructor semantics, temporary generation, support for encapsulation, inheritance, and "the virtuals"--virtual functions and virtual inheritance. This book shows how your understanding the underlying implementation models can help you code more efficiently and with greater confidence. Lippman dispells the misinformation and myths about the overhead and complexity associated with C++, while pointing out areas in which costs and trade offs, sometimes hidden, do exist. He then explains how the various implementation models arose, points out areas in which they are likely to evolve, and why they are what they are. He covers the semantic implications of the C++ object model and how that model affects your programs. Highlights *Explores the program behavior implicit in the C++ Object Model's support of object-oriented programming. *Explains the basic implementation of the object-oriented features and the trade offs implicit in those features. *Examines the impact on performance in terms of program transformation.* Provides abundant program examples, diagrams, and performance measurements to relate object-oriented concepts to the underlying object model. If you are a C++ programmer who desires a fuller understanding of what is going on "under the hood," then Inside the C++ Object Model is for you! Get a value-added service! Try out all the examples from this book at www.codesaw.com. CodeSaw is a free online learning tool that allows you to experiment with live code from your book right in your browser.

69,382

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧