An array of objects is how it happened?
New Person class
code generation follow-up code
generates a constructor with no parameters
two member variables are chosen, this is the whole argument constructor
generate getter and setter
array of default is the first of several 0 null elements
to create three objects
output is three address value
output value of the element name 1
Phase 1 Language Basics + Advanced _1-3-Java language senior _1- common API_1_ Section 4 ArrayList collection _12- array of objects
Guess you like
Origin www.cnblogs.com/wangjunwei/p/11201061.html
Recommended
Ranking