educative.io

Educative

Why is `check_for_fine` method included in every class, it is added in `Rack` class also

class Rack:
  def check_for_fine(self, number, location_identifier):
    self.__number = number
    self.__location_identifier = location_identifier

Hi @Akanksha_Agarwal, thanks for reaching out to us.
check_for_fine method is defined in Member class only. In Rack class, that function is Init which is now updated.