[Tutor] class to function
R. Alan Monroe
amonroe at columbus.rr.com
Sun May 25 18:20:30 CEST 2014
> can you
> guys help explain. super thanks
A class is like a blueprint.
An instance of that class is like a house built from that blueprint.
Think about it. An infinite number of houses could be constructed
using those blueprints. But the architect only had to draw them once.
__init__() is like the "foundation" of each house that is built. In
otherwords, the stuff you do first when construction commences.
Alan
More information about the Tutor
mailing list