Object-oriented programming

This is a pseudocode implementation of a BankAccount class. Encapsulation is achieved with private attributes and public methods. This would enable control over how attributes are changes, such as validation etc. In reality, balance would probably only be changed through deposit, withdraw and transfer procedures.