GetClass() in Object

There is a getClass method in the Object class, mar k-to-win: it will return a Class object corresponding to your object. This returned object holds the class information of your original object, such as your original object. What is the name of the object's class, what methods, fields, etc. are in the class? It is used a lot in advanced programming and is related to reflection. Marc-to-win: At this stage, it’s still not clear. We can only make an analogy. Reflection is like a mirror. Do you think mirrors in life are useful? 
————————————————
Copyright Statement: This article is the original article of the CSDN blogger "mark_to_win", and it follows the CC 4.0 by-sa copyright agreement. Please attach the original source link and this statement for reprinting. .
Original link: https://blog.csdn.net/mark_to_win/article/details/38757259

Guess you like

Origin blog.csdn.net/qq_37669050/article/details/100023836