What is operator overloading? Give Example

Answer Posted / mohd nadeem

operator overloading provides special meaning to predefined operators with respect to user defined data types like class, struct, enum.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is oops and its features?

576


What is overriding in oop?

544


just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.

6480


How Do you Code Composition and Aggregation in C++ ?

24185


What does it mean when someone says I oop?

574






what are the realtime excercises in C++?

2329


How does polymorphism work?

629


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

1682


What is object-oriented programming? Webopedia definition

715


What are the 3 principles of oop?

608


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1402


What does no cap mean?

587


What is the difference between inheritance and polymorphism?

581


What is oops with example?

560


How to call a non virtual function in the derived class by using base class pointer

5244