JVM Languages
oodesign.txt
Associated article: Object-Oriented Design in Procedural Environments
Tags: JVM Languages
Published source code accompanying the article by Thomas E. Davis in which he shows how you can apply some of the inherent cleanliness of object-oriented design into your procedural language projects. To illustrate, he designs an application for Motorola's PageWriter two-way pager.
Object-Oriented Design in Procedural Environments
by Thomas E. Davis
Listing One
structure PersonStruct
integer age
endstruct
function personSetAge( PersonStruct person, integer age ) returns integer
if( age > 0 )
begin
person.age = age
return 0
end
else
begin
return -1
end
end function
...


