Ask Question
22 January, 15:20

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

+2
Answers (1)
  1. 22 January, 16:18
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers