Java子类$ [英] Java Subclass $

查看:160
本文介绍了Java子类$的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Java新手,可能会问一个基本的问题,对于某些人来说这听起来很愚蠢.

I am new to Java and might be asking a basic question which might sound silly to some.

编译主Java类后,大多数子类在文件夹中显示为$.我复制编译的类,然后将其放在另一个位置执行.每次更改主类或子类之一时,是否需要复制所有关联的子类?还是只复制更改的内容即可?

After I compile my Main Java class most of the subclasses are displayed as $ in the folder. I copy the complied classes and put it on another location to execute. Everytime I make make a change to the main class or one of the sub classes do I need to copy all the associated subclasses? or just copying the changed ones will do?

谢谢. 尼克

推荐答案

这与子类化(class Y extends X {})或嵌套类(class Y { class X {} })有关吗?

Is this about subclassing (class Y extends X {}), or nested classes (class Y { class X {} })?

您提到的$似乎表示后者,在这种情况下,您应该复制所有内容,但是如果您只是子类化,则仅复制已更改文件的编译版本就可以了.

The $ that you mention seems to indicate the latter, in which case you should probably copy everything, but if you are only subclassing then just copying the compiled versions of the files you have changed is probably just fine.

这篇关于Java子类$的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆