How can I log class variables and its values dynamically?
Is there any way I can print variable names and its value dynamically by using only class object?
Like for example:
We pass Person class object and output is:
Person:: age:10, name: abc
something like that..
EDIT:
There are many classes. Any other solution other than Overriding toString() method? Can it all be dynamic. Like just passing the class object?