difference between "method" and "operation"

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Giulio

    #1

    difference between "method" and "operation"

    I'm studying Craig Larman's "Applying uml and Patterns" (third ed.)
    reading at the book it seems (16.6) that Operations and Methods in a
    Class diagram are something different but it's not explained what's the
    difference.

    I always thought they were the same thing.
    Do someone knows what's the difference?

    thanx alot
    Giulio

    ps. I'm sorry if this question is not in the right newsgroup, I didn't
    know any better one.
  • Michael G

    #2
    Re: difference between "method&qu ot; and "operation "


    "Giulio" <frank.zappalEV A@email.it.inva lid> wrote in message
    news:dg1mfp$p3r $1@domitilla.ai oe.org...[color=blue]
    > I'm studying Craig Larman's "Applying uml and Patterns" (third ed.)
    > reading at the book it seems (16.6) that Operations and Methods in a Class
    > diagram are something different but it's not explained what's the
    > difference.
    >
    > I always thought they were the same thing.
    > Do someone knows what's the difference?
    >
    > thanx alot
    > Giulio[/color]

    I don't have the third edition but am looking at page 186-7 of the
    second edition. In this section he states how the *UML defines* operations
    and methods. He is not referring to Java or an other programming language.
    So in the UML an *operation* is defined as an abstraction (much like an
    interface in Java) and a *method* is defined as the implementation of the
    abstraction.


    operation in the UML
    public void setSomething(So mething s);

    method in the UML
    public void setSomething(So mething s)
    {
    this.something = s;
    }


    If you aren't satisfied with this response or from this group. You might try
    comp.object.

    Mike



    ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
    http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
    ----= East and West-Coast Server Farms - Total Privacy via Encryption =----

    Comment

    • Giulio

      #3
      Re: difference between &quot;method&qu ot; and &quot;operation &quot;

      thanx it's ok

      Comment

      • Jubril

        #4
        Re: difference between &quot;method&qu ot; and &quot;operation &quot;

        an operation in a programming language can mean the interaction of many
        Methods. To calculate the roots of a Quadratic equation which is an
        operation, one might need to call several methods like


        calculate Square root()
        calculate firstroot()
        calculate second root()


        "Giulio" <frank.zappalEV A@email.it.inva lid> wrote in message
        news:dg246q$cte $1@domitilla.ai oe.org...[color=blue]
        > thanx it's ok[/color]


        Comment

        Working...