Why does one error and not the other?
I am using Intellij, and it is completely fine with this code but says this does not work, with the error "method does not override method from it's superclass." Both of these methods are overriding equivalent methods from the class this one extends.
20 Replies
⌛
This post has been reserved for your question.
Hey @blockgoblin31! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
if anyone needs to see, the ones from the base class are
With what you describe, both should work. I guess we'd need the full context
this is all the additional info I have
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I dont know what any of those words mean...
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
the class definition is just
public class Player extends Enemy {
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
thats what I think I have for both of those
You have the entire code
Though only the start of each should be enough
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
fixed it, I did something dumb and got confused by it
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
effectively I have a class that extends ArrayList that I decided to name, for simplicities sake, ArrayList
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
the Enemy file was using that one, while the Player file was using the default one
importing the custom one in the player file fixed the issue
renaming would be smart
yea, probably
Ill go call it list quickly
Post Closed
This post has been closed by <@501514065068294154>.