The result will a message which reads "John Smith has balance of 1225", since the account fee has now been subtracted from the balance.
== Getting Information about a PHP Object ==
There are number of ways to find out information about classes.
An array of classes to which your script has access can be obtained using the ''get_declared_classes()'' function. The ''class_exists()'' function can be passed the name of a class to find out if such a class exists. A list of methods in a class can be obtained by passing the class name through to the ''get_class_methods()'' function.
It is also possible to find out if a class has a parent class using the ''get_parent_class()'' function which will either return the name of the parent class, or an empty string if no parent exists.
The ''method_exists()'' function, when passed an object pointer and method name as arguments, will return a true or false value indicating the existence of the method.