A class needs to @Override
the toString() method, so it can return a String w/ the current value of its fields.
Here’s a link w/ an example for it:
A class needs to @Override
the toString() method, so it can return a String w/ the current value of its fields.
Here’s a link w/ an example for it: