function function function function function function function init get customer get bank get account make payment get balance get limit charge function john bowman california savings function function function init process month charge ( ( customer bank account balance limit apr (cfigure conceptual view of three namespaces(athe class namespace for creditcard(bthe class namespace for predatorycreditcard(cthe instance namespace for predatorycreditcard object how entries are established in namespace it is important to understand why member such as balance resides in credit card' instance namespacewhile member such as make payment resides in the class namespace the balance is established within the init method when new credit card instance is constructed the original assignment uses the syntaxself balance where self is an identifier for the newly constructed instance the use of self as qualifier for self balance in such an assignment causes the balance identifier to be added directly to the instance namespace when inheritance is usedthere is still single instance namespace per object for examplewhen an instance of the predatorycreditcard class is constructedthe apr attribute as well as attributes such as balance and limit all reside in that instance' namespacebecause all are assigned using qualified syntaxsuch as self apr class namespace includes all declarations that are made directly within the body of the class definition for exampleour creditcard class definition included the following structureclass creditcarddef make payment(selfamount)because the make payment function is declared within the scope of the creditcard classthat function becomes associated with the name make payment within the creditcard class namespace although member functions are the most typical types of entries that are declared in class namespacewe next discuss how other types of data valuesor even other classes can be declared within class namespace