Unit 1 Flashcards
Object-Oriented Programming
software engineer
A person who designs, develops, and tests software for home, school, and business use
class header
consists of the class keyword and the name of the class
source code
a collection of programming commands
syntax
The rules for how a programmer must write code for a computer to understand
comment
a text note that is ignored by the compiler to explain or annotate the code
class
A programmer-defined blueprint from which objects are created
object
an instance of a class
syntax error
a mistake in the code that does not follow a programming language’s syntax
object-oriented programming
an approach to creating and using models of physical or imaged objects
attribute
a characteristic of an object
constructor
A block of code that has the same name as the class and tells the computer how to create a new object
method
a named set of instructions to perform a task
instantiate
to call the constructor to create an object
behavior
an action that an object can perform
parameter
Defines the type of value to receive when a method or constructor is called
dot operator
used to call a method in a class
argument
The specific value provided when a method or constructor is called
string literal
a sequence of characters enclosed in quotation marks ( “ “ )
algorithm
A finite set of instructions that accomplish a task
iteration statement
A control structure that repeatedly executes a block of code
condition
determines whether or not to execute a block of code
Inheritance
An object-oriented programming principle where a subclass inherits the attributes and behaviors of a superclass
superclass
A class that can be extended to create subclasses
subclass
A class that extends a superclass and inherits its attributes and behaviors
tester class
The class that contains the main method and from where the program starts running
method signature
consists of a name and parameter list
return type
The value returned before a method completes its execution and exits
return
To exit a method and go back to the point in the program that called it with the requested value or information
void
Specifies that a method should not have a return value
programming style
a set of guidelines and best practices for formatting program code
documentation
written discriptions of the purposde and functionality of code
commit
an operation which saves the lastest changes of the code and represents a snapshot of the project
code review
the process of examining code and providing feedback to improve the quality and functionality of the program
selection statement
a statement that only executes when a condition is true
variable
a container that stores a value in memory
date type
the format of the data that can be stored in a variable
declaration
giving a name and data type to a variable
assignment
using the assignment operator (=) to initalize or change the value stored in a variable
decomposition
the process of breaking a problem down into smaller parts to write methods for each part
efficient
getting the best outcome with the least amount of words
redudant code
code that is unesseccaruy
psuedocode
a plain language description of the steps in an algorithmn
two-way selection statement
specifies a block of code to execute when the condition is true and a block of code to execute when the condition is true
logical operator
an operator that returns a Boolean value