Object Oriented Programming

Here’s a piece which I found on the book.. “Java Unleashed” on the internet…I liked it..

Consider an embezzlement program implemented with Java: A Worker object skims some Money objects from the CompanyFunds object and puts them in its own BankAccount object. If another Worker object uses the DoublecheckFunds object, a Police object will be called.

A nice way to introduce Object Oriented Programming..

Leave a Reply