what is polymorphism with example?types of polymorphism?
Answer Posted / sai
Two Types,namely
1)Compile Time Poly(Say as Method Overloading)
Methods having same name but differ in no. of
Parameters,Return type and order of parameters.
2)Runtime Poly(say as Method Overriding and Dynamic Dispatch)
Subclass methods having the same signature as that
of the super class method.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Is java free for commercial?
How many characters is 2 bytes?
Can a constructor be private and how are this() and super() method used with constructor?
What are the two environment variables that must be set in order to run any java programs?
Is array serializable java?
Why string is a class?
What is initial size of arraylist in java?
what are the disadvantages of indexes in oracle?
What function extracts specified characters from a string?
What is difference between static class and normal class?
What is a "pure virtual" member function?
Can a class be private?
What is the locale class in java programming?
describe method overloading
Give a practical example of singleton class usage?