Accessor function for CPoint data member
Hello,
This is probably real simple, but I can't seem to figure it out.
I have a CPoint object that is a data member of another class.
and all of the data members are protected.
I want to return a CPoint object using a getfunction() method to get the values of x and y in which to use it in another class definition. All of my other getfunction() methods returns a primitive data type.
Is this a reasonable approach? A code example would be great!
for some reason, I haven't seen an accessor function that returns an object.
I appreciate any help.
Accessor function - CPoint
Thanks to all of the replies.
It wasn't as "deep" as I thought it was.
I appreciate the help.