正在加载图片...
Creating an array of person objects -1 Code (A[p Person[ personi person new Person[20]i Only the name person is declared, no array Is person [o] = new Person( )i allocated yet oerson State of Memory After(A) is executed C 2000 McGraw-Hill troduction to Object-Oriented Programming with Java--Wu Chapter 9-12© 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 9 - 12 Creating an Array of Person Objects - 1 Code State of Memory Person[ ] person; person = new Person[20]; person[0] = new Person( ); A Only the name person is declared, no array is allocated yet. After is executed A person
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有