Why do we use " get { return m_layerHit;}", instead of just " return m_layerHit;"

Why, do we need to use “get” and not simply return the value?

Privacy & Terms