Im managing an application written by a consultant and I have come across a strange thing... on each class he is writing
VB Code:
Public Sub New()
myDb = New clsDb
End Sub
where db is a database access layer class written by him
and when he is using the class objects he is using
just creating a reference, not instanciating a new object
Can anyone give a decent explaination? I can't understand why?
why not just write
A class which anyway is refrerenced this often should have shared methods I think, don't you agree?????
kind regards
Henrik - strange things are happening....