Jump to content

Could someone explain the difference between class attributes and class object attributes?

 

I assume that the __init__ method assigns attributes to the object that is created

 

And that any variable in the class is a class attribute.

Sound: Custom one pros, Audioengine A5+ with S8 sub.

K70 RGB

Link to comment
https://linustechtips.com/topic/332501-classes-in-python/
Share on other sites

Link to post
Share on other sites

THis page might help.

 

I took a python based course last semester. Though I believe I've forgotten a lot of it, as I have yet to re-use it in any way.

 

http://www.itmaybeahack.com/book/python-2.6/html/p03/p03c01_class.html

 

Link is http://www.itmaybeahack.com/book/python-2.6/html/p03/p03c01_class.html

Link to comment
https://linustechtips.com/topic/332501-classes-in-python/#findComment-4513648
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×