CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: danep

Search: Search took 0.03 seconds.

  1. Re: Instantiate objects dynamically from an array of classes

    Ah, so that's what factory patterns are :) That looks like a pretty good solution. I'd prefer not to have to edit the factory just to add a new type of level, but this is at least more encapsulated...
  2. Instantiate objects dynamically from an array of classes

    Basically, I want to create a series of objects dynamically in an arbitrary order. If I have Class1 and Class2 that both inherit from BaseClass, I want to do something like this: (obviously this will...
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured