//Hope it helps
//This is the child class
public class child
{
public classCall()
{
String str = "I am the child class accessed from parent class!!!";
}
}
//this the parent class
class parent
{
public static void main(String args[])
{
child obj = new child(); //objext of child class is created
System.out.println(obj.classCall()); //'classCall method is called from child class
}
}