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.