Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > static virtual method

Thread Tools

static virtual method

Christian Hackl
Posts: n/a
Fei Liu wrote:

> A::static_method(poly_object * obj){

Should this perhaps be

A::static_method(A *obj)


> do1();
> obj->some_method();
> do2();
> }

Otherwise, it certainly looks like an interesting technique, though I am
not sure I can think of a situation in which it would be very useful.

Christian Hackl
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need clarification for virtual method and pure virtual function a C++ 7 06-28-2007 12:38 PM
why not virtual static method Tony Johansson C++ 2 08-21-2005 01:13 PM
I see no difference in an inheirited non-virtual method and an inheirited virtual method jlopes C++ 7 11-19-2004 07:47 PM
virtual destructor Vs virtual method Calvin Lai C++ 7 12-18-2003 03:11 AM
Why do static and non-static method names collide? =?ISO-8859-1?Q?Thomas_Gagn=E9?= Java 12 07-05-2003 04:59 PM