Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
27 Cards in this Set
- Front
- Back
Class
|
A new data type (ex. person)
Name must begin with an uppercase letter. |
|
Object
|
A sub-part of the class
|
|
Attributes
|
Characteristics ("nouns") of an object, usually private.
|
|
Methods
|
Procedures/behaviors ("verbs") of an object, usually public. A method can return at most, one answer.
|
|
Data types
|
Numeric, which consists of real numbers.
Character (char), which consists of single letters with single quotation (ex. 'A'). String, which consists of multiple letters, words or sentences with double quotation (ex. "Hello"). Boolean, which consists of math and true or false statements. Objects/variables must be declared as a certain data type before use. |
|
Variable
|
A named memory location (attribute, method) whose contents can change. Must be declared as a certain type of data to be used.
|
|
Polymorphism
|
Creating multiple methods that are the same but act differently depending on the class they are in.
|
|
Encapsulation
|
Combining all of an object's attributes and methods into a single package.
|
|
Library
|
A collection of classes that serve related purposes.
|
|
Abstract class
|
A parent class that does not have objects.
|
|
Abstraction
|
Creating a parent class.
|
|
Inheritance
|
Re-using objects for another class.
Child classes 'inherit' from parent classes. |
|
Accessor methods
|
Have a get prefix.
|
|
Mutator methods
|
have a set prefix and a parameter box () for input.
|
|
Void
|
A method does not return a value.
|
|
Programming errors
|
Syntax (incorrect code spelling)
Semantic/logic (incorrect order) |
|
Object Oriented Programming focuses on what?
|
Objects, their attributes, behaviors (methods) and their states (values).
|
|
Procedural programming focuses on what?
|
Creating procedures and steps for sub-tasks.
|
|
Compiler/interpreter
|
Translates computer code to machine code (binary) and vice versa.
|
|
Camel casing
|
example: studentEnrollment.
Used when writing variable names. |
|
Initializing
|
Creating an initial starting value of a variable.
|
|
Access Modifiers
|
+public
- private #protected (only child classes can access) |
|
Constant
|
named memory location whose content does not change (and is written in all capital letters)
|
|
Argument
|
data sent to a method's parameter box ()
|
|
Service class
|
a class that cannot be run (executed). Methods in a service class are called instance methods. An OO program can have many service classes.
|
|
Application class
|
a class that can be run (executed) and may use several service classes in the process. Must contain a main() method, and methods in an application class must have the word "static" in their heading. OO programs can only have one application class.
|
|
Spaghetti code
|
Tangled, unrefined code.
|