Register now or log in to join your professional community.
According to object oriented rules, NO.
No not possible. Private modifiers are meant to be accessed only within that class.
no here we talks about a levet of security
about your question no
use setAccessible(true) on your Method object before using its invoke method for Java
and for C# and .net your can use the concept of friend or System.Reflection class with InvokeMember .
This is good example on Java :
http://stackoverflow.com/questions//how-to-call-a-private-method-from-outside-a-java-class
I hope this info. is helpful to you .
Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.