Question about a possible design pattern...
- by Aftershock
I have such a design in my mind.... My aim is to reuse the program with some features included and without some features.
What is it called in the literature?
class feature1
{
void feature1function1();
void feature1function2();
}
class feature2
{
void feature2function1();
void feature2function2();
}
class program: feature1, feature2
{
void function1()
{
feature2function1();
}
void function2()
{
feature1function1();
feature2function1();
}
void execute()
{
function1();
function2();
}
}