toString!

0 Stevan Zečević · March 17, 2015
Hi guys i'm doing object oriented programming this semester and i'm having a bit trouble understanding toString method i know that it's returning string and that it is suppose to override something but what ? Is it suppose to override System.out.println(object);?

Post a Reply

Replies

Oldest  Newest  Rating
0 Dol Lod · March 17, 2015
ToString is a function that converts an object to a String implictly when the object is printed out. You just need to overwrite that method within the class. 
0 Stevan Zečević · March 17, 2015
tnx man 
  • 1

Java / Android Development

107,307 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator