I have inherited a load of beans and other class files from a previous developer now he has done some strange things which I just would like to make sure I understand what he is/was doing.
Most of his functions (sorry All) of his functions in non ejb files are set to public static This means that you don't need to create an instance of the class to access the function which means he was not using proper OOP techniques, suggesting he was not doing things in the correct manner. I would be better creating an instance of the class and then using the functions in the correct manner? What are peoples views on this - I can see how it has made it quicker to call utility functions but the correct way should be to instantiate a class and call the functions from there? Michael Forster Ingotz Uk Ltd. Tel: 07005006216 Fax: 07005006217 This email (and any attachments) is for the addressee only. It is confidential and protected by copyright, any opinions/information are those of the author and not Ingotz UK Ltd. Ingotz accepts no responsibility for loss or damage (including by viruses) due to it's use. Ingotz reserves the right to monitor emails with the lawful business practice regulations 2000. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.620 / Virus Database: 399 - Release Date: 11/03/2004
