mangesh wrote:
thanks for reply .
[context: asking about the syntax for calling a static member function]
but if i write
derived.foo() ;
will it compile ?
[ Please, quote some context when you reply.
See
http://en.wikipedia.org/wiki/Top-post#Inline_replies for more
informations. Also, unless Google Groups goofed, you seem to have
replied to your own post. Don't do that. Reply to the post you are
answering to (doesn't it make sense?) ]
Why don't you try it?
Don't guess about language features. Buy a good book (see
www.accu.org
for suggestions) and study it.
A static member function is called either with
class_name::f();
or
object_name.f();
Jonathan