Doubts about constructor destructor

Hi


I have few questions regarding constructors and destructors and memberwise initialization...
1. Can a class have many constructors??
2.what is memberwise initialization??
3.can a class have default destructor as constructor?/


thanks and regards
Umar Dafedar
1. Yes, as long as they all have different signatures.
2. Google "initialization lists". It's a syntax that lets you pass parameters to constructors of members. Unless I'm thinking of something different than you.
3. No, not at all. What makes you ask this?
OP probably wanted to say:
3. Does the compiler provide a default destructor if there
is none provided explicitly, as it does with constructors?
Topic archived. No new replies allowed.