0
Im sorta lost and need help
So im in the classes and objects section, and made animal.java and vehicle.java containing what it said, but then for the part where it said to add scripts to MyClass.java, but when i did both, i started getting duplicate class errors for 2 "public class MyClass", one for Animal and one for Vehicle. I made separate dog.java and vehicle.java but i feel like im now doing something wrong
2 Answers
+ 2
Don't use the same class name
Rename one of them to myClass2