The first option is in principle easier, but it is unfortunately limited by the fact that many classes restrict inheritance of certain members or forbid it completely.
As an example, consider a need of extending the string class with a new reverse method whose return value is a string with the characters in reversed order.