Making instance error Java
I made a public "Cat" class in Java that is used to declare an object or instance(?) named Vanilla in another class called "MyClass" and it worked, i made the "Cat" class and "MyClass" class in two seperated files. But when i do the same thing with a "Vehicle" class and "MyClass", in seperated files too, it got two errors like this : C:\Windows\Java\Car\MyClass.java:3: error: cannot find symbol Vehicle car1 = new Vehicle(); ^ symbol: class Vehicle location: class MyClass C:\Windows\Java\Car\MyClass.java:3: error: cannot find symbol Vehicle car1 = new Vehicle(); ^ symbol: class Vehicle location: class MyClass 2 errors [Finished in 1.2s with exit code 1] What should I do? There is no mistyped/typo..