• Post Reply Bookmark Topic Watch Topic
  • New Topic

Class reference  RSS feed

 
Hemanth Pallavajula
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Friends,

I am trying to understand what is meant by a Class Reference. And actually where will be the static variables and methods of a class are loaded.
 
Horatio Westock
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

There is a good explaination of this here.

Basically, when a class is first encountered, memory is allocated for the class variables (static). This happens only once. When you create an instance of the class, memory is allocated for it's instance (non-static) variables. This happens every time you create an instance.
[ March 15, 2005: Message edited by: Horatio Westock ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!