Wim Ahlers
Posts: 3
Nickname: wahlers
Registered: Apr, 2004
|
|
Re: Practically OOPs
|
Posted: Jun 1, 2004 1:52 AM
|
|
For an excellent book concerning 'why OOA/OOD/OOP' see link: http://www.amazon.com/exec/obidos/tg/detail/-/020169946X/qid=1086075543/sr=1-1/ref=sr_1_1/002-3749966-3388865?v=glance&s=books
Fundamentals of Object-Oriented Design in UML by Meilir Page-Jones (Author)
OOP only 'works' when properly used...and that is the tricky part. Some 'things' are inherently procedural based, such as many mathematical algorithms (in JAVA this may be implemented as static methods). Other 'things' are inherently class based, such as customer, part, invoice, etc... Object-oriented programming (this should actually be called class-oriented programming but nobody does) is an extension (and an important extension) to procedural-oriented programing. Having said this, it is(!) important to change your procedural mindset to a more object-oriented mindset. This does not mean that all your previous knowledge (like structured programming) are suddenly bypassed! You just use it in a different, more object-oriented, way.
Those who work in a procedural environment, or those who are in the transitional phase from procedural to object-orientation (or are otherwise procedural oriented, like you) may find the following PDF document useful, see link: http://www.programmersheaven.com/2/Art_ObjBasedSystems
I have no example programs myself but you can scan the internet. I found this for you (in JAVA), see link: http://www.redcatsoftware.com/ajcarracer.htm
(Tip: read my comments about JAVA first, see PDF document)
Regards, Wim Ahlers (The Netherlands).
|
|