• 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

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/13

Click to flip

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;

13 Cards in this Set

  • Front
  • Back

Whats the point of Private Constructors

You don't want an object to be created. Either implementing a singleton or the class contains only static methods which can be called without the class name.

Object vs. Class

-Object is an instance of a class.


-Objects have a lifespace classes do not.


-Every object must belong to a class.


-Objects are created and destroyed

OOS / Java Principles

- Polymorphism


- Encapsulation


- Abstraction


- Inheritance

Interface vs. Abstract Class

-Abstract class contains abstract methods.


Abstract methods have no implementation.



-Interface is not a class but a type


Can be satisfied by any class that implements it


Must contain all method headings within it

Final Modifier

Method - may not be overridden by a class


Class - cannot be used as a base class for any class to derive from it; also turns off late binding which prevents polymorphism.


Variable - instance of this variable cannot be changed

Polymorphism

Polymorphism is the ability of programming languages to present a common interface for different underlying data types.

Encapsulation

Encapsulation provides objects with the ability to hide their internal characteristics and behavior. (Think Private, Public, Protected)

Abstraction

Abstraction is the process of separating ideas from specific instances and thus, develop classes in terms of their own functionality, instead of their implementation details.

Inheritance

Inheritance provides an object with the ability to acquire the fields and methods of another class, called base class.

Static Modifier

The static keyword denotes that a member variable or method can be accessed, without requiring an instantiation of the class to which it belongs

Finally Block

The finally block is placed after a try catch block and executes the code within regardless of whether an exception is thrown or not in the try block.

Diamond Problem / Multiple Inheritance

Java does not allow multiple inheritance yet uses interfaces which implementations are singly inherited. Thus the Diamond problem does not exist.

What is a class?

A class is a blue print for which individual objects are created.