What is overloading and its types?



What is overloading and its types?..

Answer / Rishabh Shukla

Overloading refers to the ability of a programming language to allow multiple methods or functions with the same name but different parameters. Overloading can be achieved through method overloading (where methods have the same name but different parameters) or operator overloading (where operators are redefined for custom data types).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOPS Interview Questions

What are the main differences between procedure oriented languages and object oriented languages?

9 Answers   IBM, Infosys, Wipro,


What is constructor in oop?

1 Answers  


What is a mixin class?

4 Answers  


what is the main difference between sizeof() operator in c and c++

3 Answers  


What is object-oriented programming? Webopedia definition

1 Answers  


wht is major diff b/w c and c++?

10 Answers  


What is the difference between XML Web Services using ASMX and .NET Remoting using SOAP?

1 Answers  


Write a program to find out the number of palindromes in a sentence.

1 Answers   TCS,


What is an interface in oop?

1 Answers  


I am DeePu sotware engineer working with EMC corporation ,recently I had attended mcafee interview . Their questions were at heights of stupidity , I don't know what they want , I am a developer with 4 year experienced .I am listing the questions asked 1:What is the flag in g++ to avoid structure padding 2:In wht order parameters are passed to stack 3:How you will edit code segment of an exe

1 Answers  


suppose A is a base class and B is the derved class. Both have a method foo which is defined as a virtual method in the base class. You have a pointer of classs B and you typecast it to A. Now when you call pointer->foo, which method gets called? The next part of the question is, how does the compiler know which method to call?

3 Answers   EA Electronic Arts,


Describe what an Interface is and how it?s different from a Class.

7 Answers   Spinsys,


Categories