komlaaa
asked on
return a pointer to an array of strings
Hi Experts,
let private String array[] = { "a", "b", "c"} a data member of my class.
is there anyway i can use an accessor method like getArray( ) that can return a point to that array.
something like:
I know this can be done in C++
let private String array[] = { "a", "b", "c"} a data member of my class.
is there anyway i can use an accessor method like getArray( ) that can return a point to that array.
something like:
I know this can be done in C++
ASKER
and how do i catch it?
like String array[] = MyObject.getArray(); ?
like String array[] = MyObject.getArray(); ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
{
return array;
}