在Java中,我们可以将一个类划分为多个文件 [英] In Java, can we divide a class into multiple files
本文介绍了在Java中,我们可以将一个类划分为多个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用Java将类分成多个物理文件的任何可能性?
Any possibility to divide a class into multiple physical files using Java?
推荐答案
如果你正在考虑C#的部分类型特性,那么在Java中没有等价的。 (如果你不在想C#,请忽略这个:)
If you're thinking of C#'s "partial types" feature, there's no equivalent in Java. (If you weren't thinking of C#, ignore this :)
这篇关于在Java中,我们可以将一个类划分为多个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文