Im managing an application written by a consultant and I have come across a strange thing... on each class he is writing

VB Code:
  1. Public Sub New()
  2.        myDb = New clsDb
  3. End Sub

where db is a database access layer class written by him
and when he is using the class objects he is using
VB Code:
  1. dim db as clsDb

just creating a reference, not instanciating a new object


Can anyone give a decent explaination? I can't understand why?

why not just write

VB Code:
  1. dim db as new clsDb

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....