|
Encapsulation is taking a concept(business logic) or data(DB2) and putting a programatical interface on it. Or that is at least the form of encapsulation that they are talking about, IMO. An opinion of whether or not RPG supports OO is totally dependant on what you think OO is. Some think OO is nothing more that modular programming. If that is the case then RPG performs great OO. But if you want to "inherit" or "extend" you would have to use a true OO language. Aaron Bartell -----Original Message----- From: MURALI DHAR [mailto:nmuralidhar@rediffmail.com] Sent: Monday, November 11, 2002 8:17 AM To: rpg400-l@midrange.com Subject: Re: RE: Object properties In IBM ILE RPG book , I read ILE PROCEDURES are encapsulated ,but couldnt find the explanation .... Just some help needed?please... Regards&Thanks, Murali On Mon, 11 Nov 2002 Fisher, Don wrote : >This might be a better question for the Midrange-L list. > >The AS/400 is not, repeat not, an object oriented system in the >way you are >using the term. The AS/400 has objects like files, programs, >data areas, >etc., and they do have properties like activation groups, maximum >records, >and format levels. However, these objects do not "inherit" >properties of >other objects, unless one is talking about the members of a file >or if one >object is duplicated from another. In the case of the former, >the >properties of a single member may not be changed without changing >those of >the file. In the latter case, the properties of the newly >created object >may be changed without affecting those of the original object. > >There are also modules that can be combined into one program >object. In >this case many properties of the modules may be very different, >such as one >being RPGIV, another CL, and another C. However, any properties >of the >program object, such as the activation group, are shared by all >modules. > >I can't really comment on encapsulation as I don't think I >understand the >concept very well, but I don't believe the AS/400 is capable of >such a >thing. I could be wrong, of course. > >Hope that helps. > >Donald R. Fisher, III >Project Manager >The Roomstore Furniture Company >(804) 784-7600 extension 2124 >DFisher@roomstoreeast.com > ><clip> >I can you quote examples (some situations)for all the >properties >of Object since AS400 is object oriented system....I would like >to >know various situations like Inheritance ,Encapsulation >etc(object >properties)how they happen in writing RPG programs.... >Procedure and subprocedure Can be example for >Inheritance(inheriting properties from parent) right?I would >like >to know the situations for remaining object properties like >encapsulation etc? ><clip> >_______________________________________________ >This is the RPG programming on the AS400 / iSeries (RPG400-L) >mailing list >To post a message email: RPG400-L@midrange.com >To subscribe, unsubscribe, or change list options, >visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l >or email: RPG400-L-request@midrange.com >Before posting, please take a moment to review the archives >at http://archive.midrange.com/rpg400-l. > __________________________________________________________ Give your Company an email address like ravi @ ravi-exports.com. Sign up for Rediffmail Pro today! Know more. http://www.rediffmailpro.com/signup/ _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l or email: RPG400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
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.