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 a null tree?
Write a program to reverse a string using recursive function?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
What is static in oop?
Where is pseudocode used?
What is polymorphism and its types?
What is difference between multiple inheritance and multilevel inheritance?
Why do we use encapsulation in oops?
What are the components of marker interface?
Why is oop useful?
What does and I oop mean in text?
What do you mean by Encapsulation?
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
Why is destructor used?
What is ambiguity in inheritance?