这个函数允许客户端请求对象提供关于自己的其它方面的指针,这个新指针同样指向不同的虚基类(也叫做接口)。
This function allows a client to ask the object for different pointers to itself that also point to different abstract base classes (also known as interfaces).
Widget(所有pygtk部件的基类)的一些foo方法在内部调用虚方法do_foo。
Several foo methods of gtk.Widget (the base class for all PyGTK widgets) internally call the virtual methods do_foo.
类包含或者继承一个或多个纯虚函数,这样的类就是抽象基类。
A class containing (or inheriting) one or more pure virtual functions is an abstract base class.
应用推荐