Posts

Showing posts from November, 2021

Polymorphism in java

  Polymorphism   -Introduction to java programming Polymorphism in Java refers to an object's capacity to take several forms. Simply put, polymorphism allows us to accomplish the same action in multiple ways in Java. Any Java object that passes more than one IS-A test is considered polymorphic, and all Java objects are polymorphic because they have passed the IS-A test for their own type as well as the class Object. Polymorphism in Java is divided into two types: compile-time polymorphism and runtime polymorphism. What is polymorphism and how does it affect you? Polymorphism is derived from two Greek words: polymorphism and morphism. "Poly" stands for "many," and "morphs" stands for "forms." As a result, polymorphism denotes the existence of numerous variations. One of the most important characteristics of Object-Oriented Programming is polymorphism. In Java, what is polymorphism? In Java, polymorphism is described as a job that can perform ...