Errors
What does it say and can you help me debug it ?

6 Replies
⌛ This post has been reserved for your question.
Hey @OMIDD! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
You need to make sure you have created a Java file named
IAuto.java and defined the IAuto interface (public interface IAuto { ... }). Same problems with IElectricCar and IFuelCar.
Similarly, the tesla and ford variables are being used as if they have already been declared and initialized, but no such declarations exist. Make sure you instantiate them: IAuto tesla = new Car("Tesla Model S");, for example.
this is it
take a look if it is good!
@reiwa
are your Interfaces in a separate package? You may need to import the package, like
package Interfaces; if the package is called 'Interfaces'.i fixed it
thnx
i imported
tthnx thnx
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.