- 博客(4)
- 收藏
- 关注
原创 友元和继承
<br />Friendship is not inherited. Friends of the base have no special access to members of its derived classes. If a base class is granted friendship, only the base has special access. Classes derived from that base have no access to the class granting fr
2011-02-15 16:50:00 442
原创 触发动态绑定的2个条件
By default, function calls in C++ do not use dynamic binding. To trigger dynamic binding, two conditions must be met: First, only member functions that are specified as virtual can be dynamically bound. By default, member functions are not virtual; nonvirt
2011-02-15 16:33:00 1254
原创 动态绑定的关键
In C++, dynamic binding happens when a virtual function is called through a reference (or a pointer) to a base class. The fact that a reference (or pointer) might refer to either a base- or a derived-class object is the key to dynamic binding. Calls to vir
2011-02-15 16:21:00 317
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人