What is function overloading?,describe it with the example.
Answer Posted / mayank kumar
function overloading means the name of the function is same
but the signature is diffrent. signature means return type
as well as no. of parameters.
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is new keyword in oops?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
What is abstraction in oops?
What is encapsulation in simple terms?
What is polymorphism give a real life example?
Why it is called runtime polymorphism?
What is difference between polymorphism and inheritance?
What do you mean by variable?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
When not to use object oriented programming?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
What are the data types in oop?
Why polymorphism is used in oops?
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).