Answer Posted / dinesh
OVERLOADING:Two methods are having same name and different arguments in same class
OVERRIDING: Two methods are having same name and same arguments also same return types in its class and sub class (from 1.5 on words co-varient return types also allowed this is applicable for only for object types not primitives)i.e some relation either parent to child or child to parent
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is polymorphism in oops with example?
Why do we use class in oops?
What is destructor give example?
Why do we need oop?
why reinterpret cast is considered dangerous?
Can a varargs method be overloaded?
What is encapsulation in simple terms?
What is class and example?
What is solid in oops?
Is enum a class?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
#include
What is encapsulation in ict?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
What does sksksk mean in text slang?