J
JSheble
I have a class I'm writing that has aprox 20 methods, a mixture of both
public and private. Of the private methods, 3 use a database command object
(OleDbCommand) for either inserting data or selecting data. AM I better off
making the OleDbCommand object a private field to the class, or passing the
actual object to the three methods that'll be using it? Advantages?
Disadvantages?
public and private. Of the private methods, 3 use a database command object
(OleDbCommand) for either inserting data or selecting data. AM I better off
making the OleDbCommand object a private field to the class, or passing the
actual object to the three methods that'll be using it? Advantages?
Disadvantages?