O GoConqr está de visual novo! Conte para nós o que você achou.

Mapa mental

Polymorphism

Asi Harisandu Inglês

Conteúdo do mapa

Polymorphism

  • Polymorphism is a OOP Concept ability to take more than one form of a method.
  1. Compile Time

    • A class can have a more than one method with the same name but different no of arguments or both
      • Method Overloading
  2. Runtime

    • In this example, we are creating two classes Bike and Splendar. Splendar class extends Bike class and overrides its run() method. We are calling the run method by the reference variable of Parent class. Since it refers to the subclass object and subclass method overrides the Parent class method, subclass method is invoked at runtime. Since method invocation is determined by the JVM not compiler, it is known as runtime polymorphism.

Informações

Descrição
Mapa Mental sobre Polymorphism, criado por Asi Harisandu em 22-03-2015.
Criado por
Asi Harisandu
Visualizações
0
Avaliação

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?