F
foggy
How to implement such an interface?
Behind the interface, there is a class named M, that contains 5 classes (A,
B, C, D and E). On one situation, it will instantiate A and B, on other
situations, it will instantiate C, D and E.
To interface M, a class X object will instantiate an object of M and then
call member functions of M.
Any idea of implementing this in a good way will be deeply appreciated?
Thanks!
Behind the interface, there is a class named M, that contains 5 classes (A,
B, C, D and E). On one situation, it will instantiate A and B, on other
situations, it will instantiate C, D and E.
To interface M, a class X object will instantiate an object of M and then
call member functions of M.
Any idea of implementing this in a good way will be deeply appreciated?
Thanks!