answered question
answers (3)
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-
-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-
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.
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.
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
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
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.
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
Related questions
140 characters left












