• Post Reply Bookmark Topic Watch Topic
  • New Topic

static class, static method  RSS feed

 
Muse Ran
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
Could you please share your comments on - can i use all my classes and methods as statis in web based application. will this lead to performance degradation.

thnx
 
Campbell Ritchie
Marshal
Posts: 56546
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't know. Don't understand the question. But as a general rule in object-oriented programming, instance fields and methods are the norm, and static members are used under special circumstances.
A static member is shared throughout the class between all instances, and cannot take information from, nor pass information to, a particular instance. So static members tend to be in the minority.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!