Redian新闻
>
java class definition and implementation
avatar
java class definition and implementation# Java - 爪哇娇娃
s*9
1
Hi,
I've been looking into learning the java language and i have a question.
I know that java is also obj. oriented, but from the books i can't tell if
i can just have the class declarations in one file and the class definitions
in another instead of having it all in the same file? From the book, the
examples are showing me the class declaration and definitions in the same
place.........help?
avatar
g*g
2
Yes, java always does it this way. Separate declaration and implementation
doesn't make it more OO.

question.
if
definitions

【在 s******9 的大作中提到】
: Hi,
: I've been looking into learning the java language and i have a question.
: I know that java is also obj. oriented, but from the books i can't tell if
: i can just have the class declarations in one file and the class definitions
: in another instead of having it all in the same file? From the book, the
: examples are showing me the class declaration and definitions in the same
: place.........help?

avatar
b*y
3
java is nice and clean in this way. Enjoy buddy. You will like Java...
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。