#When constructing a child class, is the parent class initialized with the default constructor?

8 messages · Page 1 of 1 (latest)

orchid copperBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

snow yew
#

@hot kelp Didn't understand your question exactly

hot kelp
#

Sorry if it was unclear, I'm still trying to learn c++. I answering my question with some more googling

orchid copperBOT
#

@hot kelp

Please Do Not Delete Posts!

Please don't delete forum posts. They can be helpful to refer to later and other members can learn from them. In the future you can use !solved to close a post and mark a post as solved.

snow yew
#

@hot kelp If we don't make any constructor in class, compiler will make one default constructor itself

#

If we have atleast one constructor in class, then default constructor will not be created

hot kelp
#

Thanks

#

!solved