Set: 3 Inheritance and Polymorphism

Familiarize

Learn

Test

Play Scatter

Play Space Race

Voice Scatter

Voice Race

Combine with other sets Login to add to Favorites
Print: Term List | Flashcards Editing not allowed
Export Deleting not allowed

Share these flash cards

With group: None
HTML link to set: Tiny link:
Share on Facebook Share on MySpace

All 13 terms

TermDefinition
inheritancedefines the relationship between objects that share characteristics where subclass inherits characteristics of its superclass
inheritance hierarchysubclass is-a parent class
method overridingmethods inherited from the parent class are redefined by the child class, method must have the same return type, and signature
partial overridingpart of the original method is retained from the parent class, includes call to super
polymorphismmechanism of selecting the appropriate method for a particular object in a class hierarchy.
polymorphica method that has been overridden in at least one subclass
dynamic binding / late bindingmaking a run-time decision about which instance method is to call. selection occurs during the run of the program. run-time environment determines how, which form to be called
static binding / early bindingselects the correct method to overload at compile time by comparing the methods; signatures. compiler determines if a method can be called, legal, has the correct parameters
downcastcasting a superclass to a subclass type
ClassCastExceptionrun-time exception thrown to signal an attempt to cast an object to a class of which it is not an instance
abstract classa superclass that represents an abstract concept, cannot create an instance of an abstract class. can have both abstract and nonabstract variables.
abstract methodsjust a header, every subclass needs to override this method
interfacecollection of related methods whose headers are provided without implementation

Set Information

Terms 13
Creator limegreenmunkies
Created March 11, 2009
Groups None
Subject AP comp sci
Access Anyone
Edit Creator Only
Get rid of ads on Quizlet
Pop out

Discuss

No Messages
Last Message: never

You must be logged in to discuss this set.

Top Users

  1. tikuiaku - 1 score

Most Missed Words

  1. abstract methods just a header, every subclass needs to override this method - 1 miss