Lecturer wants us to give an object a print() method instead of overloading toString()
<p>When it comes to overloading console output, there seems to be a general consensus that you should overload toString(), not print().</p>

<p>However, my lecturer wants me to create an object that has a print() method, with the goal of printing a special output tailored to that object.</p>

<p>So, my question is, is this correct? Is it done? Should I just give the object an overloaded toString() method instead?</p>

<p>Here's the code he wants us to work around:</p>

<pre><code>public static void main(String[] args){
DVD dvd = new DVD(genre, title);
dvd.doSomething();
dvd.print();
}
</code></pre>