Question about a possible design pattern...

Posted by Aftershock on Stack Overflow See other posts from Stack Overflow or by Aftershock
Published on 2010-06-09T09:15:06Z Indexed on 2010/06/09 9:22 UTC
Read the original article Hit count: 171

Filed under:
|

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();
}

}

© Stack Overflow or respective owner

Related posts about c++

Related posts about design-patterns