code to explanationWed, 28 Dec 2022

public String toString() { return ("DVD: " + this.getTitleName()); } }

This method returns a String that contains the title of the DVD.

Questions about programming?Chat with your personal AI assistant