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
when will the group1&group2 exams will be held
I have applied for the post of Section Engineer. plz anyone send me the previous question paper. i did my engineering in Information Technology.
what is total power generation capacity in india at present (as on 12-12-2011)
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..
who is your favourate actor in tollywood tellme about him in few points
consiteunts of indian railways
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.
need tcs questn papers from 2007 to 2009 plzzzmail to 9015.rama@gmail.com its urgent
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
i need the placement paper of ford IT service...
Why do you want to work here
what is the different between view and materialized view in oracle DBA?
why u r shifting from engineering to other field ?
What is the instruction to load the register B?
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