Java   View all facts   Glossary   Help
object
Next kbTopobject table    UpkbTop    Previous kbTopname space   

object
(instance)
subjectfact 
objectis a synonym of instance2001-10-19 11:36:55.0

when an object is created
  1. the object's variables are set to default values
  2. the constructor of the object's superclass is invoked
  3. the object's initialization block is invoked
  4. the object's constructor is invoked
added by: DS, 2001-10-19 11:37:31.0
added by: JK, source: Sun Java Tutorial, 2001-10-19 11:37:31.0
added by: DS, source: Sun Java Tutorial, 2001-10-19 11:37:31.0
  • when an object is not needed any longer
  • the object's space is garbage collected
added by: DS, source: Sun Java Tutorial, 2001-10-19 11:37:31.0
can access all instance variables of all objects of its classadded by: DS, 2001-10-19 11:37:31.0
can be encapsulated by providing accessor methodsadded by: DS, source: Sun Java Tutorial, 2001-10-19 11:37:31.0
can be converted into a string using the toString method    source: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:31.0
can be referred to without reference to the instance variables contained in it    source: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:31.0
can be referred to by several different variables at the same time    source: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:31.0
can communicate with every object to which it has access through its public interfaceadded by: JK, source: Sun Java Tutorial, 2001-10-19 11:37:31.0
can convert itself to a string representation using the toString method    added by: JK, source: Sun Java Tutorial, 2001-10-19 11:37:31.0
can model    added by: JK, source: Sun Java Tutorial, 2001-10-19 11:37:32.0
can notify other objects that a condition variable has changedadded by: JK, source: Sun Java Tutorial, 2001-10-19 11:37:32.0
can receive messages from    added by: JK, source: Sun Java Tutorial, 2001-10-19 11:37:32.0
can represent any entity to which you can associate properties and behaviour    source: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:32.0
can return its class using the getClass methodadded by: JK, source: Sun Java `, 2001-10-19 11:37:32.0
can send messages to    added by: JK, source: Sun Java Tutorial, 2001-10-19 11:37:32.0
can wait on 0 or more condition variablesadded by: JK, source: Sun Java Tutorial, 2001-10-19 11:37:32.0
communicates with other objects by sending and receiving messages    added by: JK, source: Sun Java Tutorial, 2001-10-19 11:37:32.0
has definition A data element in an object-oriented system, which has its own identity, belongs to a particular class, and has behaviour and properties    source: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:32.0
has definition A software bundle of variables and related methodsadded by: JK, source: Sun Java Tutorial, reference: Tutorial, 2001-10-19 11:37:32.0
has definition A piece of memory that holds data in instance variables and a pointer to its classadded by: DS, reference: Source 2, 2001-10-19 11:37:32.0
has 0 or more instance variablesadded by: DS, source: Sun Java Tutorial, 2001-10-19 11:37:32.0
has 0 or more methods called instance methodsadded by: DS, source: Sun Java Tutorial, 2001-10-19 11:37:32.0
has behaviour that is specified by its methods    added by: DS, source: Sun Java Tutorial, 2001-10-19 11:37:32.0
has state that is maintained in its variables    added by: JK, source: Sun Java Tutorial, 2001-10-19 11:37:32.0
has example of creation String name = new String();added by: JK, source: Teach Yourself Java 2 in 21 Days, 2001-10-19 11:37:32.0
has part public interfaceadded by: JK, source: Sun Java Tutorial, 2001-10-19 11:37:32.0
hides methods from other objects using the 'private' keywordadded by: JK, source: Sun Java Tutorial, 2001-10-19 11:37:32.0
inherits instance methods and instance variables from
  • the class to which it belongs
  • all that class's superclasses
added by: JK, source: On To Java, 2001-10-19 11:37:32.0
is distinct from every other object even if they contain the same data    source: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:32.0
is a subtopic of Objects2001-10-19 11:37:32.0
is created by
  • declaring and initializing it such that it is created whenever execution enters a particular block, or, in the case of an instance variable, when an instance is created, for example:
    String aString = "some text";
  • or by declaring it and initializing it later using the new operator, for example:
    String aString;
    aString = new String("some text");
source: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:32.0
is a kind of kbTopadded by: JK, 2001-10-19 11:37:32.0
shares every instance method of its class with the other instances of its classadded by: DS, source: Sun Java Tutorial, 2001-10-19 11:37:32.0
shares its implementation with other instances of its classadded by: JK, source: Sun Java Tutorial, 2001-10-19 11:37:32.0
shares one copy of each class variable of its class with the other instances of its class    added by: DS, source: Sun Java Tutorial, 2001-10-19 11:37:32.0
to create you use the new operatoradded by: JK, source: Teach Yourself Java 2 in 21 Days, 2001-10-19 11:37:33.0

Kinds of object :

Next kbTopobject table    UpkbTop    Previous kbTopname space