Question #107

Which statement is correct?

A class is a data structure that can be used as a template for instances of that class by calling it, e.g. foo = Foo() . A type is a class that can be used as a template for additional classes by way of inheritance, e.g. class Foo(Bar): . As any class can be inherited in Python, all classes are types. (stackoverflow.com/questions/4162578/python-terminology-cl...)


Comment on Disqus:

Comment on Twitter:

Question difficulty: 🔵🔵🔵🔵🔵