comp sci Flashcards
program
A set of instructions that a computer uses to perform a specific function.
Class
A blueprint or template of an object that has states and behaviors;
a concept
Method
Something a class can do (behavior)
Void
Signifies that a method will not return any data
Parameter
Data that is passed to a method
int
stores numbers
double
stores numbers with decimals
boolean
stores if something is true or false
char
stores a single letter or punctuation (use single quotes)
String
stores multiple letters (use double quotes)
variable
A variable is a value that can change during the running of a program. Each variable takes up some space in memory
data type
The sort of data that a variable can hold. This also defines which operation can be performed on the variable.
Operator
the type of action that can be performed on variables
final
indicates that a variable cannot change