CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 1999
    Posts
    7

    A basic question

    Hello,

    What is the advantage (or disadvantage) of keeping the filename same as the class name? why is it a binding on the programmer?

    Graduate Student
    Engg Software Design
    Northeastern Univ.

  2. #2
    Join Date
    Nov 1999
    Location
    Tilburg-Breda, Noord-Brabant, The Netherlands
    Posts
    135

    Re: A basic question

    Hi Mr. Graduate Student :-) ,

    In Java, all your code must be inside a class. By convention(!), the name of that class should match the name of the file that holds the program. At this point, the convention that filenames correspond to class names may seem arbitrary. However this convention makes it easier to maintain and organize your programs.

    If this is the answer you were looking for, don't hesitate to rate this post :--) (Guess that's the least you can do for such a great answer :---) Thanx....

    Cya,
    Jan Meeuwesen.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured