I want to create a single class, Tool:
class Tool {
private:
public:
void PrimaryTrigger ( );
} myTool;
And only create one instance of this class 'myTool'
Then I want to be able to create multiple new classes with this general form:
Tool1:
class SuperSuckyTool {
private:
bool Selected;
public:
void PrimaryAction ( );
};
Tool2:
class SuperAwesomeTool {
private:
bool Selected;
public:
void PrimaryAction ( );
};
The only aspect of what will be different in these classes are the code that is actually in the 'PrimaryAction' functions.
Now, I want to be able to call the function Tool.PrimaryTrigger() and have it the ability to see all the classes I created for the different tools and if the bool Selected == true then have it run the PrimaryAction() function of that 'sub class'.
So I want to create multiple 'sub classes' that are controlled from the 'base class', is this possible? if so point me in the proper direction for me to start learning!
tyvm
Add me to your MSN!