Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Static method

Former Member
0 Kudos

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

1 REPLY 1

former_member184578
Active Contributor
0 Kudos

Hi.,

You cannot call a private method in other class whether it is static or non-static..

Thanks & Regards

Kiran