Hi, I have original class (DownloadPage) and I need to add just one simple functionality (get_info). What is better approach in OOP?
def get_info(page): # make simple function
...
result = get_info(DownloadPage())
or
class MyDownloadPage(DownloadPage): # make new class with inheritance
def get_info(self): # with one method
...
result = MyDownloadPage().get_info()
Thanks