Phase 1 Language Basics + Advanced _1-3-Java language foundation to strengthen high-level _09- _ Section 2 reflective target function _ _10_ reflection _Class member method acquire Method






Add a member method. eat method

to determine the method, the method name and parameter list






define a method parameter



getMethods



Person no parent so is the direct successor of the Object class. Output method Person and Object own methods of the parent class


method supports violence reflected



get the name of the method


Obtaining Class Names


Output full class name


Guess you like

Origin www.cnblogs.com/wangjunwei/p/11286919.html