|
RPG IV is not an object oriented language, Java is. Classes represent<snip>
runnable code which can only be used once instantiated as an object
(barred static methods), modules and service programs can be compared to
static (so class-level) methods. Classes are abstract descriptions of
objects, objects are instantiations of classes and represent a class in
a certain state which can behave in a predescribed way (the code in the
class) as is fit for that state. A module is not a class, a module is a
stream of code which can be called from the outside to perform some
functionality and that is it.
[W]hile I appreciate
that there are ways to simulate [instantiation-like] behaviour (e.g. copy the same
module to different locations or by renaming the compiled object) that
would still be a simulation and not have the same flexibility as object
instantiation. The whole programming concept of RPG is different from
Object Oriented (or close to Object Oriented) languages as Java, C++,
C#, etc. You can't compare the two except on the bare line to line code
basis (comparing if-statements etc.).
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.