Why most of the functions in MS Dataaccess block are static.

  • Thread starter Thread starter Vivek Sharma
  • Start date Start date
V

Vivek Sharma

Can any one please tell me design decision which lead most of the
function in Microsoft Data access block to be static.

Thanks
Vivek
 
Why do you need instances for? I guess that's because most of the functions
are globals and not instance specific.
You don't pay the price of instanciation and memoty allocation.
 
That is way i have confusion because if we have a class in application
which have some static members, the class loaded in the memory as soon
as application starts and remain there till the application exits.
So there is no point "To pay the price of instantiation and memory
allocation"
as one instance is always there in memory.


Vivek
 
Back
Top