Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2006

Tip: Looking for answers? Try searching our database.

difference between "method" and "operation"

Thread view: 
Giulio - 11 Sep 2005 17:37 GMT
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 - 11 Sep 2005 19:17 GMT
> 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
[quoted text clipped - 6 lines]
> 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
Giulio - 11 Sep 2005 21:31 GMT
thanx it's ok
Jubril - 25 Jan 2006 00:45 GMT
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()

> thanx it's ok


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.