classes and object-oriented programming lasses are the mechanism used to create new kinds of objects this covers the details of classesbut is not intended to be an in-depth reference on object-oriented programming and design it' assumed that the reader has some prior experience with data structures and object-oriented programming in other languages such as or java ("types and objects,contains additional information about the terminology and internal implementation of objects the class statement class defines set of attributes that are associated withand shared bya collection of objects known as instances class is most commonly collection of functions (known as methods)variables (which are known as class variables)and computed attributes (which are known as propertiesa class is defined using the class statement the body of class contains series of statements that execute during class definition here' an exampleclass account(object)num_accounts def _init_ (self,name,balance)self name name self balance balance account num_accounts + def _del_ (self)account num_accounts - def deposit(self,amt)self balance self balance amt def withdraw(self,amt)self balance self balance amt def inquiry(self)return self balance the values created during the execution of the class body are placed into class object that serves as namespace much like module for examplethe members of the account class are accessed as followsaccount num_accounts account _init_ account _del_ account deposit account withdraw account inquiry lib fl ff