why to use operator overloading

Answer Posted / r.ramakrishna

BY using the operator overloading we can the more than one
operator in single function.

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you define social class?

810


Explain the advantages of inheritance.

872


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

1899


Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

2212


What is byval and byref? What are differences between them?

1955


Why is abstraction needed?

758


What is polymorphism and example?

777


What is polymorphism what are the different types of polymorphism?

748


What is variable example?

788


What is oops concept with example?

768


program for insertion ,deletion,sorting in double link list

2444


What is a class and object?

794


officer say me - i am offered to a smoking , then what can you say

1844


what is the sylabus for priliminaries?

1905


Why is oop better than procedural?

809