|
-
March 15th, 2005, 09:36 AM
#1
calling non-static methods statically
Why is it possible to call a non-static method with static syntax , is it only for inherited classes ?
Base::func() //virtual function
{
..
}
Derived:func() //Base is the parent
{
if(//something)
//do something
else
Base::func(); //call the base class version
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|