469,303 Members | 1,879 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,303 developers. It's quick & easy.

Confusing on overriding functions

Hello

I've created a class on C++ with a virtual function. I've
compiled that class and created on python a derivated class
from that.

class clpy(clc):
def func1:

with clc the class on c++ and func1 the virtual function on
the clc class.

If I use on python the func1 function it's executed the python
defined function (clpy.func1), and if y use the func1 function
on c++ it's executed the clc.func1 function.

The problem is that I'd like on another function of clc execute
the overloaded function of python. So on clc I use a
this->func1(); but it's executed the clc.func1 function and not
clpy.func1 function.

Is there any way to do that?

Thank you.
Jul 18 '05 #1
0 1125

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by James Marshall | last post: by
8 posts views Thread by Edward Diener | last post: by
5 posts views Thread by Hongzheng Wang | last post: by
2 posts views Thread by franklini | last post: by
11 posts views Thread by iceColdFire | last post: by
15 posts views Thread by Susan Baker | last post: by
3 posts views Thread by David Scarlett | last post: by
8 posts views Thread by yashwant pinge | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.