What does an interface in Java interface with? -


i've been trying learn basic object oriented programming in java. curious know origin of word interface , if there documented description. trying make sense of means thinking of generic concept as

a point 2 systems, subjects, organizations, etc. meet , interact

i got definition google search. 2 systems/entities interfacing? or maybe analogy used inappropriate?. far think of skeleton define methods , property outlines.

software interfaces one-way (though there ways pass calling object reference callee), unlike electrical connectors interface both ways directly.

if accept difference in definition object 'implementing' interface, object interfaced with. allows other objects connect using defined set of methods.

to compare further electronics, if 3 different types of devices support audio-jacks, 3 devices state: can listen me, play audio. different devices (mp3 player, sonar, geiger counter) state: if plug in headphone, can sound out of me.

this interface in software. states: provide feature x, no matter actual component am.

so implements map interface, can have .get(...) , .values() , .keyset() called on it. implements audiostream interface yield audiostream when called.

the object interfacing object supplying interface can interact object in predefined , documented way. ofcourse, how object providing interface makes work can different.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -