I need to call a private method present in Parent class and I have created a Child class that is extending Parent class. Now I want to call the private method which presents in Parent class by the object of Child class and without using reflection API. How can I do that?
And there is also permission that I can change the structure of Parent class.
class Parent{
private void print(){
System.out.println("Private Parent");
}
}
class Child extends Parent{
}