3

Situation

In one case BaseWizardController should implement background functionality of BaseController->BaseConsumerController, in other case it should implement only BaseController.

Any ideas how can I do that?

Update. I don't mean 'multiple inheritance' in direct sense. I need some pattern, something similar to Decorator, that can help me to combine functionality of 2 controllers in one (implement BaseWizardController + BaseConsumerController in one case and only BaseWizardController in other).

2
  • 1
    That's not really multiple inheritance though.
    – Alternatex
    Commented Feb 18, 2016 at 8:44
  • 1
    There's no way to do that in the way you describe it.
    – Andy
    Commented Feb 18, 2016 at 8:55

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.