in the abstract class:
public String toString() { return "distance = " + String.format("%.3f", way) + " moving speed = " + String.format("%.3f", SPEED) } in the descendant from the abstract:
public String toString() { return "RideOnLine: " + super.toString(); } in the descendant from the descendant:
public String toString() { return "RideOnCurve: " + super.toString(); } as a result, the output: RideOnCurve: RideOnLine: distance = 60,000 moving speed = 60,000. Tell me how to correctly do so that there is no line (in italics) from the descendant of the abstract?