Ask Question

Why do we include a tostring method with a new user-defined class?

+4
Answers (1)
  1. 3 July, 01:09
    0
    The toString method returns a string representation of an object, typically by concatenating the string representations of the values of its instance variables. This method is often used for debugging a class during development.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Why do we include a tostring method with a new user-defined class? ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers