Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 difference between statica and instance members
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
person




PostPosted: Sat Feb 11, 2006 8:22 am   Post subject: difference between statica and instance members

wat r the differences between these 2, and how are they used differently, and in which scenarios should each one be used in?
Sponsor
Sponsor
Sponsor
sponsor
Cervantes




PostPosted: Sat Feb 11, 2006 10:13 am   Post subject: (No subject)

Static methods are associated with the class itself. One can call a static method without creating an object of the class. Non-static methods are associated with objects of that class, and can only be called by objects.

I suggest you take a look at wtd's An Introduction to Java, with particular attention to the second post
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: