|
-
May 23rd, 2002, 10:45 AM
#1
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|