structure in Java??# Java - 爪哇娇娃
l*r
1 楼
In C/C++, I like to use structure a lot to define my own (complex) data type.
However, in java, it seems the only way is to use class.
I hear class is quite slow if used as a basic complex data type (when we need
to "New" or use it a lot of times).
Any comments or ideas of this?
Thanks.
However, in java, it seems the only way is to use class.
I hear class is quite slow if used as a basic complex data type (when we need
to "New" or use it a lot of times).
Any comments or ideas of this?
Thanks.