Is it a good practise to create a seperate java file for each class in Eclipse? -
when create new class using above menu ,a new java file created each class , can see leads lot of .java files quickly(why ellipse show .class structure inside .java file, ) , design practice considering fact want classes small such as
class name { string firstname; string lastname; }
i'm new eclipse , java ide's , can tell me shortcut create new class .
it not practice, way java intended written.
why each public class in separate file?
multiple classes in same file possible, nested classes , anonymous classes , on, should have reason such thing. there nothing wrong small class, , improves readability when not searching through large files looking internal classes.
Comments
Post a Comment