click below
click below
Normal Size Small Size show me how
Code Vocab 2
Term | Definition |
---|---|
Procedural Abstraction | allows a programmer to use a method by knowing what the method does even if they do not know how the method was written |
void method | a method that performs an action but does not return a value |
argument | a value passed to a method or constructor when the method or constructor is called |
dot operator | used to call a method in a class |
method | a named set of instructions to perform a task |
parameter | a variable in the method or constructor signature that defines the type of value to receive when the method or constructor is called |
boolean | a primitive data type that can be either true or false |
if statement | a conditional statement that only executes when the condition is true |
condition | determines whether or not to execute a block of code |
conditional statement | a statement that only executes when a condition is true |
logic error | an error that occurs when the code runs but does not do what was expected |
return | to exit a method and go back to the point in the program that called it with the requested value or information |
super keyword | a keyword used to refer to the superclass |
constructor signature | the first line of the constructor which includes the public keyword, the constructor name, and the values to specify when an object is created |
inheritance | an object-oriented programming principle where a subclass inherits the attributes and behaviors of a superclass |
subclass | a class that extends a superclass and inherits its attributes and behaviors |
superclass | a class that can be extended to create subclasses |