You are viewing a single comment's thread. Return to all comments →
I think this needs to clarfiy that the person needs to also write the arithmetic class to inherit from. The way it's worded is a bit strange
"Write an Adder class that inherits from a superclass named Arithmetic in your editor below.[...]"
Then
"[...]a hidden code checker will test your submission by calling the add method on an Adder object and passing it 22 integer parameters."
According to these instructions, you create a subclass and create an add method.
There is a note below the first potion.. "Because both classes are being written in the same file[...]"
"Because both classes are being written in the same file[...]"
But it doesn't imply that the user should create it. I was only able to get it to compile and pass after adding.
class Arithmetic{}
Maybe this little snippet can be auto appended like solution is?
Seems like cookies are disabled on this browser, please enable them to open this website
Java Inheritance II
You are viewing a single comment's thread. Return to all comments →
I think this needs to clarfiy that the person needs to also write the arithmetic class to inherit from. The way it's worded is a bit strange
"Write an Adder class that inherits from a superclass named Arithmetic in your editor below.[...]"
Then
"[...]a hidden code checker will test your submission by calling the add method on an Adder object and passing it 22 integer parameters."
According to these instructions, you create a subclass and create an add method.
There is a note below the first potion..
"Because both classes are being written in the same file[...]"
But it doesn't imply that the user should create it. I was only able to get it to compile and pass after adding.
class Arithmetic{}
Maybe this little snippet can be auto appended like solution is?