View Single Post
  #10 (permalink)  
Old 07-17-2007, 04:51 PM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 19
Posts: 2,737
Last Blog:
Passwords
Rep Power: 20
John has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud of
Send a message via AIM to John
Default

The constructor is a "method" with the same name as the class.

If you instantiate something, you create a new object, which you can do "things" to.

public static void main(String[] args) is your main method. The first method that is ran when you run any java application.

If you instantiate the class in the main method by using the new keyword, you create an object of the class, and the constructor is the first method that is ran after the main method.

Reply With Quote

Sponsored Links