null
US
Entrar
Registre-se gratuitamente
Registre-se
Detectamos que o JavaScript não está habilitado no teu navegador. Habilite o Javascript para o funcionamento correto do nosso site. Por favor, leia os
Termos e Condições
para mais informações.
Próximo
Copiar e Editar
Você deve estar logado para concluir esta ação!
Inscreva-se gratuitamente
5494347
Polymorphism
Descrição
Small mindmap on polymorphism.
Sem etiquetas
polymorphism
mind map
apcs
ap computer science
inheritance and polymorphism
advanced placement
Mapa Mental por
Nik Nguyen
, atualizado more than 1 year ago
Mais
Menos
Criado por
Nik Nguyen
mais de 8 anos atrás
97
0
0
Resumo de 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:
Anotações:
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!
Quer criar seus próprios
Mapas Mentais
gratuitos
com a GoConqr?
Saiba mais
.
Semelhante
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
Explore a Biblioteca