I have the following class structures
Category(MustInherit)
The following classes inherits Category
strongPerson
weakPerson
Then I have the class
Job (MustInherit)
The following classes inherits Job
Craft
DeskJob
Now the user can can choose come characteristics and create a Person (in this example a craftsman).
sub start()
'Person
dim s as new strongPerson(...)
dim j as new craft(...)
sub end
My questions:
- I used to program procedually and the
Sub start()
reminds me a lot of it. Is the approach I choose a good one? If not why? Would it be better do use interfaces and build a class Person (using multi inheritance)? - Since there are many more categories and jobs this is going to be
quite complex with
categories * job posibilities
. Doese there exist a recommendable design pattern? The field of design patterns is quite big and I read through a lot but couldnt find an apropriate one.