//Package in which I have both the Parent and the Child class
package learningJava;
public class MainMethodDemoParent
{
//Main method of the parent class
public static void main(String... args)
{
System.out.print("This is the Parent class");
}
}
//Child class which extends the Parent class
package learningJava;
public class MainMethodDemoChild extends MainMethodDemoParent
{
}
When I try to run the child class which is without the main method but is in the same package as that of the parent class so that I can access the main method of the parent class, in Eclipse there is no option to RUN the Child class a java Application.