• + 0 comments

    This is what i found on stackoverflow

    Because Python doesn't have (and doesn't need) a formal Interface contract, the Java-style distinction between abstraction and interface doesn't exist. If someone goes through the effort to define a formal interface, it will also be an abstract class. The only differences would be in the stated intent in the docstring.

    And the difference between abstract and interface is a hairsplitting thing when you have duck typing.

    Java uses interfaces because it doesn't have multiple inheritance.

    http://stackoverflow.com/questions/372042/difference-between-abstract-class-and-interface-in-python