Get and set functions are just a public interface for getting read/write access to private data members:

How to I implement this with struct in the private data member of the class.