bluej Flashcards
(31 cards)
instance
object
object bench
the area at the bottom part of the screen where the objects are
name of classes
Capital letters
name of objects
lower case letters
invoke
a method.
objects usually do something.
operations
methods
parameters
methods can have parameters to provide additional information for a task.
–defines a TASK and a NAME
header
viktig markering av var klasskoden börjar och heter.
the header of a method is called it’s SIGNATURE. it provides information needed to invoke that method.
data type
parameters have types.
the type defines what type of value a parameter can take.
comment
above method signature
multiple instances
many different objects can be created from the same class.
state
objects have a state.
– represented by storing values in fields.
object inspector
shows the state of an object
java refers to objects attributes as
fields
fields
are defined within a class
class
fields, methods, data types
source code
determines the strukture and the behaviour of each of the objects in that class.
results
methods may return information about an object via a return value.
void
indicates that this method does not return any results.
mellan första och sista { }
outer wrapping
camel casing
ex. iPhone eBay
instansvariabel
fält
variabel
något som kan ändras.
namngett objekt med okänt värde.
identifierare (variabelnamn)
allows the program to refer to the item from other places in the program by giving it a set name.