functions of but this is natural part of the class modeland state in classes is explicit attributes instead of implicit scope references moreoverthis is just part of what classes do--they also support customization by inheritanceoperator overloadingand multiple behaviors via methods generally speakingclasses are more complete programming toolthough oop and function programming are not mutually exclusive paradigms we may combine them by using functional tools in methodsby coding methods that are themselves generatorsby writing user-defined iterators (as we'll see in )and so on the following is quick summary of the bare essentials of python oop in terms of its two object types as you'll seepython classes are in some ways similar to both defs and modulesbut they may be quite different from what you're used to in other languages class objects provide default behavior when we run class statementwe get class object here' rundown of the main properties of python classesthe class statement creates class object and assigns it name just like the function def statementthe python class statement is an executable statement when reached and runit generates new class object and assigns it to the name in the class header alsolike defsclass statements typically run when the files they are coded in are first imported assignments inside class statements make class attributes just like in module filestop-level assignments within class statement (not nested in defgenerate attributes in class object technicallythe class statement defines local scope that morphs into the attribute namespace of the class objectjust like module' global scope after running class statementclass attributes are accessed by name qualificationobject name class attributes provide object state and behavior attributes of class object record state information and behavior to be shared by all instances created from the classfunction def statements nested inside class generate methodswhich process instances instance objects are concrete items when we call class objectwe get an instance object here' an overview of the key points behind class instancescalling class object like function makes new instance object each time class is calledit creates and returns new instance object instances represent concrete items in your program' domain class coding basics