Hi everyone. I'm trying to code two programs, and I'm having trouble getting them to compile. They are very simple, and for some reason(again) I can't seem to figure them out. Any help would be great. Thanks in advance.
My first program is supposed to display "Duck@memory location - QUACK!" I can code it to display either the "Duck@memory location" or the "QUACK!" portion, but I cannot seem to put the two together. I'm going to show you the code I have for it to display "QUACK!" What I want to know is how to display "Duck@memory location - QUACK!" while only changing the "public
String toString();" portion of my code.
This is my second program. It is supposed to display "392105 - Mark Twain" once it has compiled and ran correctly. I am having trouble with two lines of code, and am confused about the "super" statement, and if this program needs/should have one. I have provided lines (______) in the places I am supposed to code things to produce the desired results. Any help is appreciated, once again.