Solid Principles, Python.
method and add some information to the error, but the reality is that this method should not be known at all in the Nokia class. Clients of the class would always have to check if the phone is a Nokia to prevent calling swipe_to_unlock. As you have seen in Chapter three, this violates the Liskov