Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
A well-defined Java interface.
Name: soothsayer Date: April 15, 2004 at 09:37:23 Pacific OS: Linux Redhat 9 CPU/Ram: 256
Comment:
I read in a book that:
Interfaces to method (in Java) are not as well-defined as in many languages. All object parameters area kind of IN OUT - can't force IN or OUT
What is a well-defined interface ? and what are IN OUT, IN and OUT kind all about ?
Name: gpp Date: April 15, 2004 at 10:45:37 Pacific
Reply:
No idea what you're talking about.. do you mean pass by reference as opposed to pass by value??
0
Response Number 2
Name: soothsayer Date: April 15, 2004 at 12:11:06 Pacific
Reply:
It doesn't matter passing by reference or by valuer. What we're concerning about is the way modules in Java interact with each other.
0
Response Number 3
Name: gpp Date: April 15, 2004 at 13:43:32 Pacific
Reply:
What modules are they talking about.. they're refering to classes, right? Was there an example?
0
Response Number 4
Name: soothsayer Date: April 15, 2004 at 15:59:20 Pacific
Reply:
I wish there were an example. Hic I stated that interfaces to methods, so modules mean methods. My God, I'm so confused now.
0
Response Number 5
Name: gpp Date: April 16, 2004 at 05:28:01 Pacific
Reply:
Sorry I cant help you. I never felt there was a problem with any of the methods I've used. Maybe they're talking more specifically about swing.. which I've never really worked with.
Summary: I could be wrong, but I don't believe that classes can inherit from an interface, they only implement them. Either way, what it means is that if you have the interface Car which looks like this: Publ...
Summary: I am trying to call a function that I placed in a .h file created by my teacher. When I have the function in my program it works just fine, however when I remove it and reference the file it is in, I...
Summary: Hi, I'm a beginner so my skill in java is "very weak". I really need help on this program. Please give me some tips so i can begin. Thanks for your time. ~~~~~~~~~~~~~~~~~~~~~ Write a well-documented...