If I create a frame inside the 'main()', then only one instance of the frame would be created.
If I create a frame inside a constructor, then each time the class is instantiated, a new frame would be created.
Could someone give me some real-time scenarios where the above two methods would be used?
No comments:
Post a Comment