R
Richard Muller
Hi All,
I wrote a HelloWorld.cs with HelloWorld class - I compiled it and it ran
fine.
I wanted to confirm that a class name had to match the file name, so I:
- copied the .cs file to HelloWorld2.cs
- compiled the new .cs and got HelloWorld2.exe (javac would have balked in a
similar situation)
- ran the .exe and it ran fine.
So is it generally true that no match between class name and file name must
exist?
--
TIA,
Richard
640K ought to be enough for anybody.
Bill Gates, 1981
I wrote a HelloWorld.cs with HelloWorld class - I compiled it and it ran
fine.
I wanted to confirm that a class name had to match the file name, so I:
- copied the .cs file to HelloWorld2.cs
- compiled the new .cs and got HelloWorld2.exe (javac would have balked in a
similar situation)
- ran the .exe and it ran fine.
So is it generally true that no match between class name and file name must
exist?
--
TIA,
Richard
640K ought to be enough for anybody.
Bill Gates, 1981