Private method without underscores and interfaces in Python

The example of the private method and interface usage

Class members access modifiers

How declare private and protected methods in Python

How you declare protected methods using the library

How does it work

Super simple illustration

Interfaces

How you declare interfaces using the library

Methods

Arguments

Access modifiers

Multiple interfaces

Declare exceptions required to be thrown

How does it work

Software Engineer & Tech Lead

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store