Author: pdelco | Posted on: 8/6/2008 8:47:43 PM | Views : 270

All,

 

I'm a long time vb'er looking to learn more about applying patterns to my code. I'm starting small and could use a little advice/guidance. I've written a series of classes which implement the factory pattern (I think). While doing some research on the pattern I discovered a couple of different ways to implement it. I was hoping someone could validate my object model or suggest ways to improve upon it. My biggest question is, have I implemented the factory patterm correctly?

 

Here's my model.

 

Class MyFactory

 


Public Shared Function CreateInstance(ByVal classType as MyType) as MyBaseClass

 


Dim myClass As MyBaseClass

 

Go to the complete details ...