Question
What is function overloading and operator overloading?

Answers

Function overloading: C++ enables several functions of the same name to be defined, as long as these functions have different sets of parameters (at least as far as their types are concerned). This capability is called function overloading. When an overloaded function is called, the C++ compiler selects the proper function by examining the number, types and order of the arguments in the call. Function overloading is commonly used to create several functions of the same name that perform similar tasks but on different data types. Operator overloading allows existing C++ operators to be redefined so that they work on objects of user-defined classes. Overloaded operators are syntactic sugar for equivalent function calls. They form a pleasant facade that doesn't add anything fundamental to the language (but they can improve understandability and reduce maintenance costs).   Your Comment




More Software,operator Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What is the purpose of . Operator?

Define scope resolution operator?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?



Search
Can you Answer!!
  • Q Which was the first spacecraft to hit the Moon?
  • Q Birth date and marriage date items were switched while entering data. Which of the following data validation checks could detect this? A. Logical relationship B. Sequence C. Reasonableness D. Validity
  • Q The supply of agricultural product is
  • Q What is located on Boothia's peninsula in Canada
  • Q what is the carrier
  • Q Write any two objectives of teaching literature in the school curriculum?
  • Q Explain the Esterase and lipase plate assay ?
  • Q Write short note on Editor
  • Q In Polar Tundra regions , which animal is used to get fur by nomadic Eskimos?
  • Q Which state government has srarted Gunotsav programme to improve elementry education?
  • Q He is the best speaker ____ is available.