Unit 1 Flashcards
Object-Oriented Programming (44 cards)
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