null
US
Iniciar Sesión
Regístrate Gratis
Registro
Hemos detectado que no tienes habilitado Javascript en tu navegador. La naturaleza dinámica de nuestro sitio requiere que Javascript esté habilitado para un funcionamiento adecuado. Por favor lee nuestros
términos y condiciones
para más información.
Siguiente
Copiar y Editar
¡Debes iniciar sesión para completar esta acción!
Regístrate gratis
5494347
Polymorphism
Descripción
Small mindmap on polymorphism.
Sin etiquetas
polymorphism
mind map
apcs
ap computer science
inheritance and polymorphism
advanced placement
Mapa Mental por
Nik Nguyen
, actualizado hace más de 1 año
Más
Menos
Creado por
Nik Nguyen
hace más de 8 años
98
0
0
Resumen del Recurso
Polymorphism
is meant to make changes in the method definition of the derived classes, and have those changes apply to methods written in the base class
Example:
Nota:
people[0] = new Undergraduate("Cotty, Manny", 4910, 1); people[1] = new Undergraduate("Kick, Anita", 9931, 2); people[2] = new Student("DeBanque, Robin", 8812); people[3] = new Undergraduate("Bugg, June", 9901, 4);
people[0] = new Undergraduate("Cotty, Manny", 4910, 1); people[1] = new Undergraduate("Kick, Anita", 9931, 2); people[2] = new Student("DeBanque, Robin", 8812); people[3] = new Undergraduate("Bugg, June", 9901, 4);
Say we ran the writeOutput() method on each of these. Which writeOutput is used?
The one in the class that was USED TO CREATE THE OBJECT.
Not necessarily "person", but "Undergraduate" and "Student."
THIS IS A FORM OF DYNAMIC BINDING!
THERES A WHOLE PROJECT BASED ON EXAMPLES FOR POLYMORPHISM!
Mostrar resumen completo
Ocultar resumen completo
¿Quieres crear tus propios
Mapas Mentales
gratis
con GoConqr?
Más información
.
Similar
Missed Questions on Inheritance/Polymorphism Test
Nik Nguyen
Abstract Classes & Interfaces & Polymorphism
Nik Nguyen
How to Create A Mindmap
PatrickNoonan
Creating Mind Maps with GoConqr
Sarah Egan
NEW: ExamTime's Mind Map Maker
Andrea Leyden
Macbeth Quotes/Themes
Michael LEwis
Genes, The Genetic Code, DNA and Chromosomes
Bee Brittain
CUBAN MISSILE CRISIS
Olivia Andrews
How Villainy is Depicted in Macbeth
scarletsnow491
Philosophy
Rebecca Harbury
Health and Social Care PIES
s1501118
Explorar la Librería