Hello. I need to know how toString() works. Can someone show an example of how toString() is manipulating data and how to get it to do it? Like maybe an example of a program with toString() and the same one without toString() to see how it works.
I have very basic things in my program, almost no content. My professor just wants us to demonstrate that we know how to use toString(). I've looked all over the net and in my book, and no one can explain toString() in a way that I can understand.