what is difference betweeen operator overloading & operator
overriding?



what is difference betweeen operator overloading & operator overriding?..

Answer / 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

More Engineering AllOther Interview Questions

What is the relation between dB and change of signal?

1 Answers  


what is Pick map and what is the use of it? I want to configure a MVG applet on a filed in opportunity form applet. and when i select fields from MVG , it should reflect on the form applet(means there should be changes on fields in MVG according to Field select from MVG appler). Is this possible (with MVG or Picklist)?

1 Answers  


can anyone help me with an article or a few pointers on what are the industry expectations from Fresh engineers in today's market scenario

1 Answers  


Hello everybody, I have applied for the AAI jr executive ATC exam. I am from CSE branch. Is Exam paper for the CSE and other branches same or not? Because I don't have knowlwdge on Electronic subject? Can any one please send me the previous exam papers for AAI Jr Executive of CSE branch My id is: naveen.kocherla@gmail.com Thanks and Regards Naveen

1 Answers  


How do an incremental process model and certification work together to produce high quality software? In your own words, describe the intent of certification in the clean room software engineering context.

1 Answers  


How to freely move a ball in graphics mode.

1 Answers   Impetus,


what kind of questions generally asked for ME admission, (specially in RGPV).

1 Answers  


which is the better form java or .net?exactly when we have to choose particcular 1 among them?

1 Answers  


is it possible to apply for visa interview in 4-1 sem for doing ms in usa

1 Answers   QSpiders,


how to count number of 3's in 100

1 Answers   Educomp,


what are the artifacts in coding phase in SDLC????

1 Answers  


MES NEW DELHI

1 Answers   MES,


Categories
  • Civil Engineering Interview Questions Civil Engineering (5086)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4453)
  • Electrical Engineering Interview Questions Electrical Engineering (16638)
  • Electronics Communications Interview Questions Electronics Communications (3918)
  • Chemical Engineering Interview Questions Chemical Engineering (1095)
  • Aeronautical Engineering Interview Questions Aeronautical Engineering (239)
  • Bio Engineering Interview Questions Bio Engineering (96)
  • Metallurgy Interview Questions Metallurgy (361)
  • Industrial Engineering Interview Questions Industrial Engineering (259)
  • Instrumentation Interview Questions Instrumentation (3014)
  • Automobile Engineering Interview Questions Automobile Engineering (332)
  • Mechatronics Engineering Interview Questions Mechatronics Engineering (97)
  • Marine Engineering Interview Questions Marine Engineering (124)
  • Power Plant Engineering Interview Questions Power Plant Engineering (172)
  • Textile Engineering Interview Questions Textile Engineering (575)
  • Production Engineering Interview Questions Production Engineering (25)
  • Satellite Systems Engineering Interview Questions Satellite Systems Engineering (106)
  • Engineering AllOther Interview Questions Engineering AllOther (1379)