Re: invoking a method
- From: "P. Raulerson" <paul.rl@xxxxxxxxxxxxxx>
- Date: Sun, 3 Dec 2006 13:38:29 -0600
Just a comment:
"Pete Dashwood" <dashwood@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4tftu9F13rndoU1@xxxxxxxxxxxxxxxxxxxxx
"getters and setters" typically refer to METHODS used to set a property, as
you so aptly described. However, there is nothing that says the properties
*must* be PUBLIC. Indeed, Getters and Setters are used to encapsulate the
format of private properties inside an object, and in specific, their
implementation.
Second, unlike is some of the Microsoft world, it is pretty common to pass
objects to ADD or INSERT methods and have the method determine what kind of
object is dealing with. "+" is usually used as an example of this - being
able to add two integers or concatenate two strings, or convert an integer
to a string and add it to another string. That kind of stuff. As you pointed
out, they are also regular parts of collections, and hide the underlying
implementation.
-Paul
<snip lots of good stuff here to get to the part I am commenting on ...>
(The SET method of the list object is implicit if it is a COM object (and
those are the ones I mainly deal with...) If it isn't, then you would need
to write (or generate) your own GET and SET methods) The Fujitsu COM
interface Class provides these methods and saves you the trouble of having
to wrap your .dll with the layers and interfaces you would otherwise need.
The use of SET as shown here, will not work outside the Fujitsu Object
COBOL environment (You could simulate it very easily though).
It's not a good example, because SET actually sets the property, which is
the same as "inserting" it... Any INSERT Method, presumably has something
to be inserted, so there will usually be further information required.
Something that might use an INSERT method could be a database object
(Collections use ADD)
.
- Follow-Ups:
- Re: invoking a method
- From: Pete Dashwood
- Re: invoking a method
- References:
- invoking a method
- From: Frank Swarbrick
- Re: invoking a method
- From: Paul Robinson
- Re: invoking a method
- From: Pete Dashwood
- invoking a method
- Prev by Date: Re: invoking a method
- Next by Date: Re: Got a COBOL job
- Previous by thread: Re: invoking a method
- Next by thread: Re: invoking a method
- Index(es):
Relevant Pages
|