toString method
- @override
override
Returns a string representation of this object.
Implementation
@override
String toString() {
return "Name: " + this.name + " has " + albums.length.toString() + " albums\n";
}
Returns a string representation of this object.
@override
String toString() {
return "Name: " + this.name + " has " + albums.length.toString() + " albums\n";
}