+ 1

How to store object name in a string

Say I have an object Ferrari of class Car, how do I access the name of the object "Ferrari" without assigning it to a String?

8th Dec 2016, 9:01 AM
Aditya
Aditya - avatar
2 Answers
0
Thanks for the answer, I could hard code the name of the variable, but all I wanted to know is: the above process is feasible or not.
8th Dec 2016, 3:31 PM
Aditya
Aditya - avatar