I wrote a
java program(named vechile.java) in a file in the package Automobile.
package Automobile;
public abstract class vechile
{
public abstract void speed();
}
Now in diffrent file but in a same package i wrote another java program (named car.java)
package Automobile;
public class car extends vechile
{
public void speed()
{
System.out.println("car specific speed");
}
}
My problem is that i can not compile car.java. The compiler error is "vechile class not found".
I have kept the two program in the Automobile folder.
And when compile then i write this way
f:/Automobile/>javac car.java;
why the second one is not compiling..
Please give me your valueable suggestion.