05-17-2011 11:59 AM
HI ,
I have a doubt ,within my class->method can i call a static method which is declared as a private in another class...without being declared as friends...please let me know...this is not interview question as for instance we need to give but for static it didnt show me any error message....if this Right can you please explain.
Moderator message: please search for information and try yourself before asking.
Edited by: Thomas Zloch on May 17, 2011 2:14 PM
05-17-2011 12:22 PM
Hi.,
You cannot call a private method in other class whether it is static or non-static..
Thanks & Regards
Kiran