What is Polymorphism?
Hello Everyone????
What is Polymorphism?
Polymorphism is defined as the ability to take more than one form It is of two types namely, Compile time polymorphism or method overloading- a function called during compile time. For instance, take a class ‘area’. Based on the number of parameters it may calculate the area of a square, triangle, or circle. Run time polymorphism or method overriding- links during run time.?The method inside a class overrides the method of the parent class.
#Java #Java8 #Java23 #Polymorphism #overloading #overriding #compile #runtime #parent #child #software #developer #programming #code #OOPS #class #objects #method #inheritance #hashing #hashmap #map #interface #abstract #FullStack #development #engineer #lambda #intermediate #terminal #functional #stream #default #static #loops #interview