ISF DP Computer Science

Terminology #


TermDefinition
ClassA template, or a blueprint, from which Java objects are created. All Java programs start with a class.
ObjectAn object is a single instance of a Java class. An object has both state and behavior.
Object Oriented ProgrammingProgramming model that focuses on objects and the data and actions associated with the objects.
StateThe state of an object is all of the object’s associated data. It is the state that the object is in.
BehaviorThe behavior of an object is what the object is able to do. It is the actions that can be performed by the object.
InstanceInstance is what you call a specific object constructed from a class. Instance and object generally refer to the same thing. An object is a specific instance of a class.
MethodA method is a way to teach the computer a new command
StringString is a Java type that represents a string of characters (text)
Instance VariableA variable defined in a Class, for which each object of the class has its own copy.
ConstructorA constructor is a special method of a Class that constructs a new object (a new instance) of the Class and sets the initial values for the instance variables.
toStringtoString is a special method you write in your class that returns a String representation of the object.
ParameterA variable passed into a method from outside the method.
Return typeA method’s return type is the type of value returned from that method.
Method signatureA method’s method signature is the name of the method and the parameter list.
Instance MethodAn instance method is a method that defines the behavior of an object. It defines an action that the object can perform.
VisibilityVisibility (usually public or private) defines who has access to something (usually a variable or method). Public means code outside of the class can access, private means only code inside the class can access.
Static methodA method called on the Class, rather than on a specific object of the Class.
PackageRelated classes are grouped together into packages.
thisThe this keyword is a reference to the current object (the current instance).