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, 04:12 AM
Last Post: 01-15-2006, 07:10 PM
Last Post: 05-23-2002, 07:50 AM
By don in forum VB Classic
Last Post: 10-22-2000, 06:54 AM
By Tom Shreve in forum Enterprise
Last Post: 04-07-2000, 08:15 PM
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center