Python - Polymorphism and Dynamic Behavior
Find the error in this code snippet:
from abc import ABC, abstractmethod
class Writer(ABC):
@abstractmethod
def write(self, text):
pass
class FileWriter(Writer):
def write(self):
print("Writing to file")
fw = FileWriter()