current position:Home>Array of JAVA objects..

Array of JAVA objects..

2022-08-06 10:02:59CSDN Q&A

There is a House class, an array A of the House type is created, uninitialized, an object B of the House type is created and initialized, A[0]=B, why can B call the object in the house class, but A[0]Cannot call
Change the parr[houseNum] of the penultimate line to house to run successfully

img

img

img

img

copyright notice
author[CSDN Q&A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/218/202207301848515372.html

Random recommended