Jump to content

OOP - instance vs static ???


spires

Recommended Posts

static variables are common for all object of given class. Instance variables are not (each object has it's own.. instance of such variable).

 

You can use static variables for example to keep counter of how many objects of given class have been created.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.