0
How can we call private method outside the class in which it is defined?
3 Respuestas
+ 1
actually... we cant coz of Encapsulation
————————
but here setters and getters come)
https://stackoverflow.com/questions/2036970/how-do-getters-and-setters-work
+ 1
you are right Sumit
0
may be if we call that private method from a public method inside that class after creating an object of that class at outside. In this way we can call the private method.