Just to make sure I have this right with the whole copy constructor thing:
you create a class(Example)
create the copy constructor ( Example(Example & example1) )
define the copy constructor (
Example::Example(Example & example1)
{
Any data I want the other 'instance?' to have
}
)
then you can create an instance if the class ( Example Ex )
then you can use the copy constructor ( Example Ex2(Ex) )
then ex2 would have any data I placed in the copy constructor along with having access to all the functions in Example?
If I'm totally of the ball here just tell me I'm messed up and I'll go back to beating my head on the keyboard. Any pointers will be greatly appreciated. Thanx