正在加载图片...
Creating an array of person objects -2 Code Person[ personi Now the array for storing B person= new Person[201; 20 Person objects is created. but the person person [o] = new Person( )i objects themselves are not yet created oerson 01234 16171819 State of Memory After(B) is executed C 2000 McGraw-Hill troduction to Object-Oriented Programming with Java--Wu Chapter 9-13© 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 9 - 13 person Creating an Array of Person Objects - 2 Code State of Memory Person[ ] person; person = new Person[20]; person[0] = new Person( ); B Now the array for storing 20 Person objects is created, but the Person objects themselves are not yet created. After is executed B 0 1 2 3 4 16 17 18 19 person
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有