Dear all,
I have a class called
student(name, age, address, class).
I need to do 2 operations( display and print to file)
I need to display using toString().
However, the problem comes when I need to print into file in this order
class + name + address + age.
Is there a profesional way to reuse the toString()?? instead of duplicate the code again?
Thanks
alot