Protocol (object-oriented programming): Difference between revisions
Appearance
Content deleted Content added
Jan Hidders (talk | contribs) stub |
Jan Hidders (talk | contribs) m an accent less |
||
Line 5: | Line 5: | ||
If an object-oriented programming language provides full [[encapsulation (object-oriented programming)|encapsulation]] then the interface describes the only way in which objects may be accessed by other objects. |
If an object-oriented programming language provides full [[encapsulation (object-oriented programming)|encapsulation]] then the interface describes the only way in which objects may be accessed by other objects. |
||
''To be written:'' |
|||
* public interface |
* public interface |
||
* private interface |
* private interface |
Revision as of 09:13, 2 September 2002
In object-oriented programming the interface of an object is a description of
- the messages that are understood by the object,
- the arguments that these messages may be supplied with, and
- the types of the results that these messages return.
If an object-oriented programming language provides full encapsulation then the interface describes the only way in which objects may be accessed by other objects.
To be written:
- public interface
- private interface
- other interfaces