Here is the toString method implementation
===================================================
public String toString(){
return name;
}
====================================================
Here is the complete class and output
Get Answers For Free
Most questions answered within 1 hours.