reusing the class code in another application would be difficult the following steps help you use the myclass class that you created in the previous section this example also appears with the downloadable source code as myclasstest py open python file window you see an editor in which you can type the example code type the following code into the window -pressing enter after each lineimport myclass samsrecord myclass myclass(amysrecord myclass myclass("amy" print(samsrecord getage()samsrecord setage( print(amysrecord getname()amysrecord setname("aimee"print(samsrecordprint(amysrecordthe example code begins by importing the myclass module the module name is the name of the file used to store the external codenot the name of the class single module can contain multiple classesso always think of the module as being the actual file that is used to hold one or more classes that you need to use with your application after the module is importedthe application creates two myclass objects notice that you use the module name firstfollowed by the class name the first objectsamsrecorduses the default settings the second objectamysrecordrelies on custom settings sam has become year old after the application verifies that the age does need to be updatedit updates sam' age somehowhr spelled aimee' name wrong it turns out that amy is an incorrect spelling againafter the application verifies that the name is wrongit makes correction to amysrecord the final step is to print both records in their entirety choose runrun module the application displays series of messages as it puts myclass through its pacesas shown in figure - at this pointyou know all the essentials of creating great classes