I am Tamas from Hungary. I am beginner java developer and i have got a little problem with inheritance. My source code:
package oroklodes;
class MyClass {
private int anInt=4;
public String toString() {
return "Instance of myClass.anInt"+anInt;
}
public static void main(String[] args) {
MyClass act = new MyClass();
act.toString();
}
}
The program is not working because i get an error message!! The message is:
Error: Could not find or load main class oroklodes.MyClass
I would be happy if somebody knew the solution.