-> you have some code like this up there?
-> Employee *employee1;
-> employee1 = new Employee;
PO> Hmmm i created the object automatically with something like
PO> employee employee1;
PO> So is it necessary to create the object manually with the pointer?
You don't have to create it manually if you don't wish to, but if you are
going to pass a pointer to the object, you have to get it from somewhere. As
it stands, you will have to pass the address of the object, not the object.
Bruce
--- Maximus/2 3.01
---------------
* Origin: COMM Port OS/2 juge.com 204.89.247.1 (281) 980-9671 (1:106/2000)
|