Pls i want to call a constructor within itself but don't know how to.
capton
0
Newbie Poster
Recommended Answers
Jump to PostI suppose that if you want to call a different version of a constructor inside another of the same class, that you could, although it is HIGHLY ill-advised! So you could do something like this, I suppose (danger Will Robinson!):
class ClassX { private: int knit; int …
All 4 Replies
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
capton
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.