toString( ) in java

To implement toString( ), simply return a String object that contains the human-readable string that appropriately describes an object of your class. Override toString() for Box class The output of this program Dimensions are 10.0 by 14.0 by 12.0Box b: Dimensions are 10.0 by 14.0 by 12.0