T
techieV
Hi,
I am struck at below problem while working on a issue.
Is this correct in cpp - sending a reference to an object in a
function call and while receiving receive it in a local object? The
real call to func1 is - someObj.func1( getClass1Obj()); and this 'Get'
function returns a reference to const object.
function prototype -
class someClass
{
public:
func1( Class1 object);
}
and calling this function as - someObj.func1( &class1obj);
Thank you in advance.
I am struck at below problem while working on a issue.
Is this correct in cpp - sending a reference to an object in a
function call and while receiving receive it in a local object? The
real call to func1 is - someObj.func1( getClass1Obj()); and this 'Get'
function returns a reference to const object.
function prototype -
class someClass
{
public:
func1( Class1 object);
}
and calling this function as - someObj.func1( &class1obj);
Thank you in advance.