python - what does 'objects being subclassable' mean? -


dive python -

different programming languages define “object” in different ways. in some, means objects must have attributes , methods; in others, means objects subclassable. in python, definition looser; objects have neither attributes nor methods (more on in chapter 3), , not objects subclassable (more on in chapter 5).

i coming c++/java background.

to subclassable means can inherit them. e.g.

class foo(object):     pass 

object here subclassable because foo can inherit it.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -