What is operator overloading? Give Example

Answer Posted / kalai391989

operator overloading is a function..

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is polymorphism needed?

584


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).

1662


Can you name some types of inheritance?

633


why reinterpret cast is considered dangerous?

1894


What is difference between data abstraction and encapsulation?

608






Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

1609


How do you achieve runtime polymorphism?

562


What do you mean by abstraction?

603


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

1685


Explain the advantages of inheritance.

666


Where You Can Use Interface in your Project

1419


explain sub-type and sub class? atleast u have differ it into 4 points?

1828


What are the 3 pillars of oop?

607


Can abstract class have normal methods?

600


What is overloading in oops?

589