whats the difference between these two?
-----Code:MyMouse& getMouse() {return m_mouse;};
MyMouse* getMouse() {return &m_mouse;};
MyMouse is a class. and getMouse just returns the m_mouse which is a private member.
-----
I know to access the second one u need:
m_mouse->function inside the Mymouse();
the the first one:
m_mouse.function inside the Mymouse();
----
But when and how are they different - which is better? and when?
Thanks in advance,
