Guest User

Untitled

a guest
Feb 17th, 2019
63
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from abc import ABCMeta, abstractmethod
  2. class LinearModel(metaclass = ABCMeta):
  3.  
  4. @abstractmethod
  5. def fit(self):
  6. print('Hello')
  7.  
  8. class LinearRegression(LinearModel):
  9.  
  10. def fit(self):
  11. print('Bye')
  12.  
  13. c = LinearRegression()
  14. c.fit()
  15.  
  16. # Output
  17. Bye
RAW Paste Data