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/26

Click to flip

26 Cards in this Set

  • Front
  • Back

Object Oriented Programming

Programming methodology based on the use of the objects as unit of design and supports the following paradigms


*Inheritance


*Polymorphism


*Encapsulation

Object

Programming abstraction that represents an entity, encapsulating its parts, attributes and behaviors

Encapsulation

Packaging together an object state

Inheritance

Allows passing of attributes and behaviors from one class to another

Polymorphism

Ability of an object having more than one type

Classes

Template for object creation

Fields

Data cells that represent the object state



Methods

Represents object's behaviors

Information Hiding

Hiding internal state, and implementing details from the rest of the program

Constructor

Objects using the class code as a template

Default Constructor

Creates the object, assigns default values to each field, depending on their tyoe

Overloading

Defines different types of behaviors for a method, depending on the type of arguments



Shadowing

Some variable name exists in different nested scopes, only the variable on the innermost scope is visible

Packages

Mechanism of bundling together a set of related classes, and provides code organization and avoids name collision

Import Statements

Used to import particular package in code

Array

Most basic data structure used to fold multiple values of some data type

Array Initialization

After allocating the array in memory, it is initialized by filling the array with default values

Bounds Checking

Any time an instruction tries to access an array element outside of the valid index range


Note: the VM, NOT the compiler will catch the mistake and throw the exception

Dynamically

Means happening on run time, and not compile time

Class Extension (Extends)

Keyword that allows passing of attributes/behaviors from one class to another

Specialization/Refinement

Adding new fields and methods particular to the new type

Generalization

Reverse process of going from a particular type (class) to a more general one

Final

Specification that a method should never be overridden by sub-classes

Dynamic Dispatch

When a method is called on a polymorphic object, method is both defined in the sub class and super class , then dynamic type will determine which version of the method will be used

Abstract Class

Class designed to be extended, but not instantiated

Abstract Method

Method which only the signature is given, but not implementation