Solid Principles, Python.
employee can be saved as XML, nut now we want to replace XML with JSON. The first thing we do is remove tha save_as_xml function. class Employee: xml_filename = "emp.xml" def __init__(self, name, salary): self.name = name self.salary = salary def raise_salary(self, factor): return self.salary *