Ask Question
28 December, 02:02

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

+5
Answers (1)
  1. 28 December, 05:37
    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?
Get an answer to your question ✅ “Why do we include a tostring method with a new user-defined class? ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers