正在加载图片...
Assigning Objects Customer customer customer customer new Customer()i customer new Customer( )i C Cus A B Customer customer A. The variable is allocated in memory customer new Customer()i B. The reference to the cus tomer new Customer()i new object is assigned to customer. C) C. The refer another object overwrites the reference in customer. Code State of memo C 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 3-10© 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 3 - 10 Assigning Objects Code State of Memory Customer customer; customer = new Customer( ); customer = new Customer( ); customer A. The variable is allocated in memory. Customer customer; customer = new Customer( ); customer = new Customer( ); A B C customer = new Customer( ); B. The reference to the new object is assigned to customer. Customer C. The reference to another object overwrites the reference in customer. Customer
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有