adspace


what is difference betweeen operator overloading & operator
overriding?

Answer Posted / Rateesh Kumar Srivastava

Operator Overloading refers to the ability to define the behavior of operators (such as +, -, *, /, or ++) for a custom data type. This allows operators to perform actions specific to that data type. For example, defining the + operator for a Vector class might result in vector addition.nOperator Overriding involves overwriting an existing operator definition for a predefined data type (like classes derived from Object) to provide a more appropriate implementation for a specific subclass. For instance, overriding the equals() method for a Student class might compare student attributes instead of using the default comparison.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

when will the group1&group2 exams will be held

1877


I have applied for the post of Section Engineer. plz anyone send me the previous question paper. i did my engineering in Information Technology.

2087


what is total power generation capacity in india at present (as on 12-12-2011)

2195


Iam preparing for Visakhapatnam Management Trainee 2009 entrance exam.. If anybody have Visakhapatnam Management Trainee Interview questions Pls forward to my mail id srikanth.avanthi@gmail.com .. It is kindly request..

2423


who is your favourate actor in tollywood tellme about him in few points

3127


consiteunts of indian railways

2417


Hi, I am appearing for the ISRO exam for the post of Scientist/ Engineer to be held on 26th April,09. Can anyone help me regarding the same? I want to know about the exam pattern and the syllabus. If anyone could share your experience or sample papers for the same at khadhar786@rediffmail.com? It would be very useful for me. Thanks.

2211


need tcs questn papers from 2007 to 2009 plzzzmail to 9015.rama@gmail.com its urgent

2033


Please if anybody have Vizag Steel Entrance exam papers or atleast Pattern of exam.Then please forward to my email- id: :srikanth.avanthi@gmail.com

2045


i need the placement paper of ford IT service...

2092


Why do you want to work here

1839


what is the different between view and materialized view in oracle DBA?

1754


why u r shifting from engineering to other field ?

2270


What is the instruction to load the register B?

2444


I am going to appear for ISRO written test on 26 th april 2009 .So kindly forward me sample previous question paper for ISRO for BE Computer Science . My mail id : jothychristiya@gmail.com

2679