Click here to Skip to main content
14,635,966 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hi,

I've a some data in this helper class called:
protected:
CChartPointsArray<T> m_vPoints;


I need to access this data from another class. How do i write the "getter" function to get the data? I am not supposed to changed from "protected" to "public".

Or is there any other way to get the data without changing from "protected" to "public"?

<T>is a struct
Posted
Updated 4-Apr-12 17:00pm
v3

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Try making a friend class or function to access the data goto this[^] link.

http://msdn.microsoft.com/en-us/library/h2x4fzdz.aspx[^]
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100