Latest Answer : There are 2 types of Polymorphism1. Compile time Polymorphism2. Run Time PolymorphismCompile time polymorphism is used for Function overloadingRuntime is used for implementing virtual functions,overriding etc. ...
Latest Answer : Poly [many] morph [form] as the name says many forms is supported. Two types of Polymorphism are operator overloading and function overloading.operator overloading => +operator can be implemented to add numbers or string or even if one wishes to subtract ...
Latest Answer : we have Date class in java.util. Ex: java.util.Date d1=new java.util.Date(); System.out.println(d1.getTime()); statement ...
Latest Answer : Polymorphism is the ability to assume many forms. In short it refers to several methods / operators sharing the same name but having different parameter list and different implementations. Variables also can be polymorphic. There are two ways polymorphism ...
Latest Answer : Dynamic polymorphism is also known as runtime polymorphism.It is achieved by means of virtual functions. Depending on the type of object referred by a variable the decision about the method to be called (whether to call base class implementation or the ...