In Python, can an object have another object as an attribute?

Posted by ChrisC on Stack Overflow See other posts from Stack Overflow or by ChrisC
Published on 2010-05-24T22:40:29Z Indexed on 2010/05/24 23:21 UTC
Read the original article Hit count: 259

Filed under:
|

In Python, can an object have another object as an attribute? For example, can a class called car have a class called tire as an attribute?

© Stack Overflow or respective owner

Related posts about python

Related posts about oop