It is convenient to overload commonly used functions to work with objects of your class. For example, suppose that a class defines a property that stores data that you often graph. The MyData bar method has the same name as the MATLAB bar function. However, the MyData bar method requires a MyData object as input.