I want to fix the subclass because the superclass works perfectly. The huge portion of commented out code would be nice if someone wanted to answer but right now I'm only desperate to fix the code before the "/* */" comment. If someone wants to help me with what's in between, I know I've probably fucked the whole thing up by asking.

The keyword here is int, as far as I know this means the value returned has to be an integer. You cannot return a string "nothing happens" then. Then again, I've never really programmed Java, so I might be wrong here.

You want to return a string when the method return type is int(it should be string).

Things noticed, class access modifiers(public, protected private).- public means it can be accessed from inside and outside of the class that contains the public modifier- protected means it can be accessed from inside the class that inherits the class that contains the protected modifier, also it be can accessed from inside the class that contains protected modifiers.- private means it can only be accessed from the class that contains the private access modifier.

To put it simply if you have public getters and setters methods for the class attributes, you shouldn't make the class attributes public(make them private or protected if they need to be accessed from a inherited class), because having getters and setters for them is pointless.

You can create a Thread called "Your java projects" and post your problem there, and when the problem is solved just continue with your next problem on the same thread(its easier then spamming threads).

by sarataylor3 on Tue May 21, 2019 2:13 pm ([msg=98251]see Re: I've spent two weeks trying to make this subclass work[/msg])

After years of not sleeping well and not finding the right guide for natural products online, she decided to do the research so others don’t suffer when buying a new mattress as she did. For the past 3 years, she studied everything about sleep and natural product to put the best natural mattress buying guide online.regardsbest mattress for back pain