software
a collection of instructions that is run by a computer
source code
a collection of programming commands
integrated development environment
a software application for writing, compiling, testing, and debugging program code
syntax
the rules for how a programmer must write code for a computer to understand
class header
consists of the class keyword and the name of the class / public class MyClass {
class
a programmer-defined blueprint from which objects are created
package
a collection of similar classes
object
an instance of a class
attributes
characteristics of objects
behaviours
actions an object can perform
instantiate a new object
Painter myPainter = new Painter();
state
the attributes of an object that are represented by its instance variables
constructor
a block of code that has the same name as the class and tells the computer how to create a new object
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
boolean
primitive data type that can be either true or false
logic error
an error that occurs when the code runs but does not do what was expected
decomposition
the process of breaking a problem down into smaller parts
edge case
a bug that occurs at the highest or lowest end of a range of possible values or in extreme situations
redundant code
code that is unnecessary
open source code
code that is freely available for anyone to use, study, change, and distribute
inheritance class header
public class MyClass extends MyFirstClass {
public MyClass() {
super();
}
}
superclass
more general than a subclass and should not access the extra attributes and behaviours of a subclass
instantiate a method
public void MethodName() {
void method
a method that performs an action but doesn’t return a value
algorithm
a set of instructions to solve a problem or accomplish a task