Re: ArrayList - Newbie Misunderstanding



Thanks again for your reply.

Maybe I am very niave or old fashioned, but how is an object any
different from a subroutine with multiple entry and exit points - in
other words a subprogram with a giant case statement at the beginning,
determining which bit is accessed and which bit is returned. This
subprogram can either be local or global.

I have been bamboozled for years with terms such as polymorphism etc,
but i have never seen how the end result is any different from my
interpretation.

I can appreciate how the concept, helps with error free coding, but I
can not see how the concept, is any different from calling subroutines,
which may or may not return some value or modify a value passed as a
reference.



kenfine@xxxxxxxxxxxxx wrote:
No prob if you're not interested in C#. However, what you're dealing with
here is a conceptual thing, not a syntax thing, and the concept is
consistent across many programming languages. The book is useful whether you
want to use VB or C# or Java.

-K F

.



Relevant Pages

  • Re: string
    ... and put the parts of the returned value into a string. ... In this case - a dos .com file, ... so after having printed VendorStr twice, you exit normally - without ... call subroutine ...
    (alt.lang.asm)
  • Re: How to compile the example_itsol_1.f , and why always meets these errors.
    ... > the arguments are different at the calling point and where the subprogram ... > Subroutine my_sub ... it try to call the DITSOL_PCG which is a cxml ...
    (comp.lang.fortran)
  • Re: Adding pre/post escape sequences to a "SAY"
    ... $SAY = "WRITE SYS$OUTPUT" exists on pretty much every VMS system, ... The one thing I could think of is to define a subroutine: ... Unofficial OpenVMS Hobbyist Support Page: ...
    (comp.os.vms)
  • Re: Help Constructing Fictional Cross-Religious Movement
    ... familiar enough with COBOL to know for sure. ... When you say "subroutine," are you speaking of what I'd call a function in C? ... the multiple entry points can also have different argument lists. ...
    (rec.arts.sf.composition)
  • Re: Inappropriate ioctl for device
    ... I understand that die() exits the program. ... assignment to a variable to hold that exit error, ... What does `shift` do? ... scalars that was passed to the subroutine. ...
    (perl.beginners)