Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from abc import ABCMeta, abstractmethod
- class LinearModel(metaclass = ABCMeta):
- @abstractmethod
- def fit(self):
- print('Hello')
- class LinearRegression(LinearModel):
- def fit(self):
- print('Bye')
- c = LinearRegression()
- c.fit()
- # Output
- Bye
Add Comment
Please, Sign In to add comment