• 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/18

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;

18 Cards in this Set

  • Front
  • Back
What is a general template used to define and create specific instances or objects?
A Class
What are contracts for what a class can do, but they say nothing about the way in which the class must do it?
An Interface
What is a 100% abstract class, and is implicitly abstract whether you type the abstract modifier in the declaration or not
An Interface
What kind of methods can Interfaces have?
Only abstract, not concrete
What is a Superclass?
Classes at the top of the class hierarchy from which all other classes inherit attributes and methods.
What is a Subclass?
Also called specific classes, are at the bottom of the class hierarchy.
What makes a class Concrete?
Classes with instances.
What do Abstract classes produce?
Templates for more specific classes
Define Polymorphism
It allows the programmer to treat derived class members just like the parent class members. Process to implement is called Dynamic Binding.
What is encapsulation
The message is sent without considering how it will be implemented. All the attributes and methods are hidden from view.
What is Overriding?
Overriding lets you define the same operation in different ways for different object types.
What are some requirements of the overriding methods?
The Overriding method must have the same argument list, return type and must not have a more restrictive access modifier.
What is overloading?
Reusing a method name but with different arguments. It lets you define the same operation in different ways for different data.
What are some requirements of the overloading methods?
Overloaded methods must have different argument lists, may have different return types, different access modifiers, throw different exceptions
What is a benefit of Composition over Inheritance?
Inheritance relationships make it hard to change the interface of a superclass. Composition provides an approach that yields easier to change code.
What is a Framework?
Collection of objects? White box frameworks include visible source code. Easier to build but harder to use than black-box frameworks.
What is the principle reason behind encapsulation?
All the attributes and some private methods are hidden behind an interface. A class specifies how to interact with the interfaces for proper instantiation.
What is the relationship difference between object inheritance and object composition
You can say that one object that inherits from another has an "is-a" relationship and object in composition have an "has-a" relationship.