Ive been learning integrating Object orientated programming in my projects. In .net it has become alot easier to take advantage of self written com objects at least it seems that way to me. My question is as I am trying to master the theoritical of oop, I have become a bit confused on when should I be using methods(functions that take in varibles or using properties) Say I have made a component that accesses my database. I pass it a sql string and a table name for the dataset. Should I be using properties to pass the method these values or is it proper to pass them when the method is called. When would it be most proper to be using properties. im sure im rambling though this has concept has kind of stumped me.




Reply With Quote