+ 2
I have created an array of objects but on printing it will give me reference values of objects rather then variable of objects?
7 Answers
+ 3
Thanks alot
+ 2
You have to override the toString() method and then call the toString() on the student object.
+ 1
Share your code please.
+ 1
This is how you should do it in order to print objects of a class.
https://code.sololearn.com/cTAlj0Gk1Gb7/?ref=app