Click here to Skip to main content
15,881,281 members
Articles / Programming Languages / C++

Single point construction of hierarchical objects in C++

Rate me:
Please Sign up or sign in to vote.
4.59/5 (24 votes)
1 Dec 2010CPOL2 min read 40.6K   33  
Prohibit construction of hierarchical objects both on the heap and on the stack, and allow construction from a single construction point in the base class.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Marvell
Israel Israel
17 years experience software engineer at Marvell company in Israel.

Comments and Discussions