Is there any default function that is called by print() to convert types to string? I am looking for something like __str__()
in python or toString() in java.
Is there any default function that is called by print() to convert types to string? I am looking for something like __str__()
in python or toString() in java.