U
Ueland
Hi I'm a newbie using winXP and working from console (no IDE). I've
started to experiment with simple classes and objects. As I understand
the name of the class must be same as the name of the file so if I
declare
class Point {...}
then I should save the file as Point.java
Let's say I've done that and now I want to test a new feature without
erasing the old version. So I want to save the new file version as
Point2.java. But this forces me to change all occurances of Point to
Point2, that is the classname, the constructors and so on.
class Point2 {...}
Is there any SIMPLE way to make different versions without having to
change the class name. (I've thought of using different packages but
that also complicates things).
Thanks Bob
started to experiment with simple classes and objects. As I understand
the name of the class must be same as the name of the file so if I
declare
class Point {...}
then I should save the file as Point.java
Let's say I've done that and now I want to test a new feature without
erasing the old version. So I want to save the new file version as
Point2.java. But this forces me to change all occurances of Point to
Point2, that is the classname, the constructors and so on.
class Point2 {...}
Is there any SIMPLE way to make different versions without having to
change the class name. (I've thought of using different packages but
that also complicates things).
Thanks Bob