Omitting the Method toString
In this lesson, we look at a class that does not define its own toString method.
We'll cover the following...
We'll cover the following...
The class Name
without the toString
method
We have previously mentioned the importance of a class having its own version of the method toString
. Let’s see what happens when we do not define toString
. For example, let’s remove the definition of the method toString
from the class Name
, as defined in the ...