Constructor of Composition.

Where the constructor is called for composition? and can we call the constructor of the class we are composting in the constructor other class we are compositioning in?

would this be legit?
1
2
3
4
class myc{
    public:
           myc(....para):myBaseClass(.......parameters){
}
closed account (zb0S216C)
That's what you're supposed to do.

Wazzak
Topic archived. No new replies allowed.