S
Suraj
hello,
I have a base class (Base) with a lot of member variables. The size of
this class is 16bytes.
I need to implement another class (Derived) with partially different
functionality. If I derive Derived from Base, all members of Base
would be available in Derived.
This is unnecessary. In fact, the actual members that are needed just
constitute of 8bytes of data.
I need to develop a mechanism to selectively inherit member variables
and functions from Base into Derived.
Note that any change in Base isn't possible.
1. Is it possible?
2. How?
Thanks
Suraj
I have a base class (Base) with a lot of member variables. The size of
this class is 16bytes.
I need to implement another class (Derived) with partially different
functionality. If I derive Derived from Base, all members of Base
would be available in Derived.
This is unnecessary. In fact, the actual members that are needed just
constitute of 8bytes of data.
I need to develop a mechanism to selectively inherit member variables
and functions from Base into Derived.
Note that any change in Base isn't possible.
1. Is it possible?
2. How?
Thanks
Suraj