Study your flashcards anywhere!

Download the official Cram app for free >

  • Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

How to study your flashcards.

Right/Left arrow keys: Navigate between flashcards.right arrow keyleft arrow key

Up/Down arrow keys: Flip the card between the front and back.down keyup key

H key: Show hint (3rd side).h key

A key: Read text to speech.a key

image

Play button

image

Play button

image

Progress

1/18

Click to flip

18 Cards in this Set

  • Front
  • Back
Object-oriented technology
A system based around the states and functions of objects.
State/field
Inherent attributes of the object.
Method/behavior
Action through which an object's behavior is exposed.
Data encapsulation
Hiding an object's internal state and requiring all interaction to be performed through an object's methods.
Modularity
The source code for an object can be written and maintained independently of the source code of other objects.
Information-hiding
Internal implementations of an object are hidden, as only with the methods does something interact.
Code re-use
You can use existing objects in your program, i.e. complicated code that others have already made.
Pluggability and debugging ease
If a particular object is problematic, simply remove and replace with a different object. Fix the broken part, not the machine.
Class
Blueprint from which the individual objects are created (sort of like DNA transcription to RNA.) Objects are instances of classes, i.e. your particular bike is an instance of the class of objects known as bicycles.
Main (method)
Implies a complete application or superclass.
Inheritance
Use of the code of a superclass to create subclasses. The superclass code constitutes the body of the subclass code, and the differentiations of the subclass are specified in its field. Various objects can have a certain amount in common with one another, i.e. mountain bikes, road bikes, tandem bikes, but they all have defining features as well.
Superclass
Class from which state and behavior are inherited by subclasses. Can have infinite subclasses.
Subclass
Class which inherits behavior and state from a superclass. Each subclass may have only one superclass.
Creating a superclass
Use "extends" keyword before the name of the class from which to inherit.
Interface
The method with which one interacts to interact with an object. Commonly a group of related methods with empty bodies.
Implementation of an interface
Allows a class to become more formal about the behavior it promises to provede. Forms a "contract" with the outside world.
Package
Namespace that organizes a set of related classes and interfaces, conceptually similar to different folders on your computer (i.e. a "folder" for HTML, one for images, for scripts.)
API
Application Programming Interface. Premade classes that allow the Java user to forgo some coding infrastructure.