Jump to content

Talk:Method (computer programming)

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Hyad (talk | contribs) at 23:25, 2 July 2005 (Subroutines and Methods). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Is static really the same as "shared"--I thought it was the opposite--static *fields* cannot be modified.

more information and more accurate information needs to be put here. I don't know enough about Java to help.

My references: (by memory)

Java Methods, avaliable directly from www.skylit.com


I would not consider static functions as methods [they're just functions associated with the class]. Similarly, constructors and destructors (in C++) are not strictly speaking methods. A method should be able to assume that invariants are satisfied on entry to the method, and should leave the object in a valid state.

Subroutines and Methods

Aren't subroutines and methods pretty simliar? If so, I think each article should mention the other one to some degree. -Hyad 2 July 2005 23:25 (UTC)