Object as Member of another class
Hello all expert C++ programmer, i have a noob question about object as member of another class.
For instance, there are two class which is class date and class employee. Class employee contains date object as a data member.
As i know from drybelk, he say that we cannot do this. We must use pointer or reference. This thread is located in this website but i cannot find. Therefore i start a new thread.
What confused me is i have read a book where do the opposite way which is class employee contains date object.
As far as i know, we must used member initialization list.
How come the book saying can include object as another class but drybelk say cannot ?
Sorry for english.
I hope you all can clear my doubts.
Thanks for your help.
A billion thanks for your help.
I very appreciated your help.
Last Post: 12-01-2012, 05:12 AM
Last Post: 01-15-2006, 08:10 PM
Last Post: 05-23-2002, 08:50 AM
By don in forum VB Classic
Last Post: 10-22-2000, 07:54 AM
By Tom Shreve in forum Enterprise
Last Post: 04-07-2000, 09:15 PM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL