01 Getting Started Flashcards
micro-world
miniature simulated environment that is populated with one or more objects with clearly defined behaviors, and that can be visually represented so that you can see how the objects move around and behave over time.
origin of cart. coordinates
(0,0). top left corner.
program
set of instructions for a computer
source code
program is written by a programmer in some programming language
compiler
translates a program, as a whole, from one form to another.
interpreter
translates a program into machine language one statement at a time
algorithm
a plan for solving a problem
object
represents a specific concept or item that is relevant to the problem we are trying to solve
behavior
an action that an object can take or a task that it can perform in response to a request from an external source
method
a collection of statements that are written in some programming language to describe a specific behavior
precondition
a method is something that is assumed to be true before the method is invoked
postcondition
a method is something that is assumed to be true after the method has been executed
message
a request for a specific object to perform a specific task
class
a family of objects that all understand the same methods
instantiation
Creating a new object
declaration
A new name is introduced in a program
how to comment in java
//
Some methods take additional values that provide information about what the method should do. These additional values are called:
parameters
In a micro-world like a LightBot, the coordinates that identify the upper left corner of the world are:`
(0,0), top left.
An instance of a class is called:
object
A special kind of method that is used to initialize a brand new object is called:
constructor
The set of values of all of the attributes defining an object are called its:
state
When we create a new class that inherits from another, we call this new class a:
Derived Class
Subclass
Child Class
what do you call it when a new class inherits from an existing class
extends