You are here:

C++/execute constructor

Advertisement


Question
if we hav more then one constructor in base class . can we execute with one object of base class all  the constructor?

Answer
hi sachin

Constructors work is to initialise a variable ... and you can't initialise a variable twice its of no use simply so its called only once you can't call it twice.

I have a program written long back which invokes 2 constructor at the same time send me ur email address at joydeep1982@gmail.com then i will send it to you.

regards
Joydeep Bhattacharya
http://www.scodz.com
regars

C++

All Answers


Answers by Expert:


Ask Experts

Volunteer


Joydeep Bhattacharya

Expertise

TSR, Socket and Very Complex Mathematical Problem

Experience

Worked on many OOP projects with design patterns

Organizations
http://www.scodz.com

Publications
http://www.scodz.com

Education/Credentials
Master of Computer Applications

Awards and Honors
Being a proud owner of a website of programming called http://www.scodz.com

Past/Present Clients
http://www.funforu.com http://www.dhoondho.com http://analysingc.50webs.com

©2016 About.com. All rights reserved.