toString() method: Returns a String representation of the object; called automatically by System.out.println.
How to apply it: Override toString() to provide meaningful output when printing objects.
Course: AP Computer Science A · Unit: Writing Classes
Practice questions about toString() method on AimFive — get rubric-based feedback showing exactly which points you earned.
AP and Advanced Placement are trademarks of College Board. AimFive is not affiliated with or endorsed by College Board.