That is correct, what you want to do is over-ride the toString() method. The default toString() method of your Officer object is to print out the memory location of the object.
// inside the...
Type: Posts; User: helloworld922
That is correct, what you want to do is over-ride the toString() method. The default toString() method of your Officer object is to print out the memory location of the object.
// inside the...