469,352 Members | 2,107 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,352 developers. It's quick & easy.

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.
Sep 11 '05 #1
3 14039

"Giulio" <fr*************@email.it.invalid> wrote in message
news:dg**********@domitilla.aioe.org...
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


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(Something s);

method in the UML
public void setSomething(Something 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 =----
Sep 11 '05 #2
thanx it's ok
Sep 11 '05 #3
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" <fr*************@email.it.invalid> wrote in message
news:dg**********@domitilla.aioe.org...
thanx it's ok

Jan 25 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Gilles Arnaud | last post: by
5 posts views Thread by Mike Logan | last post: by
3 posts views Thread by Gina_Marano | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.