Linux Today: Linux News On Internet Time.

More on LinuxToday

Python4Kids: Classy Methods, a Sense of Self (Classes Part 2)

Oct 17, 2011, 15:03 (0 Talkback[s])
(Other stories by brendanscott)


Desktop-as-a-Service Designed for Any Cloud ? Nutanix Frame

[ Thanks to Brendan Scott for this link. ]

"n our last tutorial we had our first look at classes and their attributes. The attributes of a class are the data which are stored in the class. The great thing about classes though is that we can use them to relate data to functions. Just as the data of a class are called attributes, the functions of a class have a special name as well. They are called 'methods'. We have had a brief meeting with methods earlier.

"Let's (re)create the class from the previous tutorial..."

Complete Story

Related Stories: