Things we can do in main

Hi all,
What are the things we can do in main, other than
1. Creating objects and accessing its members.
2. Accessing static members of the same class.

Main is just like another method. You could do anything there!!!! but you should not do all that you should and thats where abstraction and encapsulation come into the picture. What needs to be looked into is what is the main responsibilty you are assigning to a class. What is that you want to expose to the outside world and what is private to the class itself. Are you using the main method for trsting purposes only or is a command line app. Then come in the portability and scalability and flexibility issues. So the main question again would be from a high level of abstraction what is that you want this class to do?

Similar Messages

Maybe you are looking for

  • Migration of webservices from OC4J 10.1.4.2 to Weblogic 10.3.5 fails

    Hello All, We have a webservices war file that needs to be migrated from existing Oc4J to weblogic version 10.3.5. While trying to deploy the war file on the server, some functions do not work due to an exception caused by Unable to create Service Fa

  • Email virus

    I have an iMac and an iPad. I have just recently started to get vast number of emails landing in my inbox. They are all delivery failures (boouncing back to me as if I have sent an email out and its come back undelivered) There are literally hundreds

  • Change FB02 display. Documents with Special GL Posting

    Hello. I've been trying to modify FB02 layout in order to display BSEG-ZFBDT under the additional data section (below the line item information) The problem is that if I do an FB02 with a regular customer document that posted to the reconciliation ac

  • Write/Read Database with "Jeffrey"-VIs

    Hello, i want to write/read a sql-database without-the NI-Toolkit. I found while searching here the Tools from Jeffrey which are available here: http://jeffreytravis.com/lost/index.html Now i unocked the files and wanted to try t he example "Example

  • Something's wrong with on demand in the manchester...

    Hi Couple of weeks ago my on demand all went to pot stuttering everywhere,  After a call to technical and a few reboots here and there and a resetting of my i.p address to the bt servers all was well,  For the record I have a black vbox and a first g