answered question

answers (3)

edwardclin...
0
Votes
BEST ANSWER  decided by votes   |  edwardclint  |  November 05, 2009 12:26 PM
The relation between any two different Java objects is defined on object-level rather than application-level interaction.

-quote-

"Any relationship between distributed objects has two sides: the client and the server. The server provides a remote interface, and the client calls a remote interface. These relationships are common to most distributed object standards, including Java Remote Method Invocation (RMI, RMI-IIOP) and CORBA. Note that in this context, the terms client and server define object-level rather than application-level interaction--any application could be a server for some objects and a client of others. In fact, a single object could be the client of an interface provided by a remote object and at the same time implement an interface to be called remotely by other objects. "

-end of quote-

Voted as best: kaliekat, docbrown, safiqulislam
Comment
hudsonamak...
0
Votes
hudsonamaker  |  November 05, 2009 11:57 AM
The four relations between two different java objects:
The objects are in the same class.
One object is a subclass of the other object's class.
The objects are in the same package.
None of the above. (Both objects are members of the general public.)

These relationships are not mutually exclusive. One object can be a subclass of another object in the same package.
Comment
kty2777
kty2777  |  November 10, 2009 12:12 AM
Examville is not considered a reliable source for Mahalo Answers - see these pages for more information

Helpful Mahalo pages

Mahalo Answers Etiquette
How Mahalo Answers Works
How To Get a Best Answer on Mahalo
Mahalo ProTips
Mahalo Copying and Pasting Guidelines
Mahalo Terms of Service
srgothard
0
Votes
srgothard  |  November 06, 2009 01:33 AM
There are 3 relationships between classes, and objects are instances of classes:

is-a: one class may be a more specific type of another class. This relationship comes about from inheritances. For example, if Circle inherits from Shape, Cirlce "is a" Shape.

has-a: Objects of one class have one or more objects from another class. This relationship comes about from instance variables (or variables that each object has defined for it). For example, a Student may have a Textbook.

uses-a: Objects of one class may take as parameters objects from another class. If one or more methods of one class accepts objects of another, the first object uses the second object. For example, a Car may use a gas pump.
Voted as best: eskay
Comment
140

ask any question

Top of Page
Buy Mahalo Dollars
WITH CREDIT CARD OR PAYPAL

Please log in to use this function.