Sponsored Links

Interview Questions
Recommended Books












INTERVIEW QUESTIONS C++ OPERATOR OVERLOADING IN C++ DETAILS
Question :

What is function overriding?

Category Operator Overloading in C++ Interview Questions
Rating (4.0) By 58 users
Added on 7/19/2011
Views 1976
Rate it!

Highly Recommended, Hand Picked Operator Overloading in C++ Books



Question :

What is function overriding?


Answer:

The function overloading is the technique in which you can make the function with more than one name but only if you will change the paramaters or the number of the paramaters.
Source: CoolInterview.com



function overriding is one in which functions have the same name and same number,type of arguments.. its only the implementations that differs.. they are accessed based on the object of the class being called
Source: CoolInterview.com



Posted by: dharani

Contact dharani Contact dharani

function overloading is function name is same and parameter same but deffination of the function is deffrent .fuction perform the action is deffrent -deffrent <br>example-<br>class abc<br>{<br>int sum;<br><br>public int sum(int i, int j)<br>{<br>sum=i+j;<br>return(sum);<br>}<br>int mul;<br>public int sum(int i, int j)<br>{<br>mul=i*j;<br>return(mul);<br>}}<br>{<br>
Source: CoolInterview.com



Posted by: ashish awasthi

Contact ashish awasthi Contact ashish awasthi

In OOAD we can give an idea of one interface and multiple defination
Source: CoolInterview.com



Posted by: srividya

Contact srividya Contact srividya

it is a concept in which multiple function acess same data & information but different argument
Source: CoolInterview.com



Posted by: rishi

Contact rishi Contact rishi

class abc<br>{<br>int sum;<br><br>public int sum(int i, int j)<br>{<br>sum=i+j;<br>return(sum);<br>}<br>int mul;<br>public float sum(int i, int j)<br>{<br>mul=i*j;<br>return(mul);<br>}}<br>{<br><br><br>
Source: CoolInterview.com



Posted by: Shyam Parmar

Contact Shyam Parmar Contact Shyam Parmar

Function over loading means two functions will have same name but they differ in the number or type of arguments. <br><br>Whereas function overriding means two functions will have same name , type and number of arguments. Typically these two functions will be in different classes (base and derived for example).
Source: CoolInterview.com



Posted by: Saravanan

Contact Saravanan Contact Saravanan

Function Overloading is defining more than one class with same function name but with diiferent number of arguments are with different datatypes of arguments<br><br><br>Example:<br>class sample<br>{<br>int s,m,d;<br>int sum(int a,int b)<br>{<br>s=a+b;<br>return(s);<br>}<br>int sum(int a,int b, int c)<br>{<br>m=a*b;<br>return(m);<br>}<br>float sum(float a,float b)<br>{<br>d=a/b;<br>returb(d);<br>}<br>}
Source: CoolInterview.com



Posted by: Tamilarasan

Contact Tamilarasan Contact Tamilarasan

Function overloading is the feature of C++ where two functions can have same but different arguments for example <br><br>Class CFunctionOverload {<br><br>Public:<br>void OverloadFunction(void);<br>void OverloadFunction(int param1);<br>void OverloadFunction(int param1, int param2);<br>void OverloadFunction(float param1);<br>}<br><br>
Source: CoolInterview.com



Posted by: Harish G

Contact Harish G Contact Harish G

Function Overriding:-<br> The functions having the same name,parameters but having different definitions is called function overriding. It basically deals with the concept of Inheritance.when a Base class having some function and the derived class of it having same function, then this creates a problem called function overriding.
Source: CoolInterview.com



Posted by: Priyanshu Thukral

Contact Priyanshu Thukral Contact Priyanshu Thukral

function overloading is a technic in the function has same name with different parameter.
Source: CoolInterview.com



Posted by: rushikesh kulkarni

Contact rushikesh kulkarni Contact rushikesh kulkarni

a function with same name can exist in 2 or more base class. now which function is used by derived class when it inherits the 2 classes is solved by overriding the function in derived class using (::) operator.
Source: CoolInterview.com



Posted by: vaibhav panwar

Contact vaibhav panwar Contact vaibhav panwar

If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
Name :*
Email Id :*
Answer :*
Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
Process Verification Enter the above shown code: *
Inform me about updated answers to this question

Related Questions
View Answer
What is the difference between an interface and abstract class?
View Answer
What is function overloading and operator overloading?
View Answer
What is virtual constructors/destructors?
View Answer

Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.

View ALL Operator Overloading in C++ Interview Questions & Answers



User Options
India News Network

Latest 20 Questions
What are the Hadoop related Projects at Apache?
What are the modules included in Apache Hadoop Project?
What is Apache Hadoop?
What is a Private Cloud? Do we need one to handle Big Data?
How Can We Cope with the Impact of Big Data?
What skills do Big Data analysts need to have?
What does a Big Data analyst do?
What are some real-world examples of Big Data and how it is used?
What is Big Data Analytics?
Why Big Data is becoming so important?
What is the impact of Big Data on Sports Industry?
What is the impact of Big Data on Real estate Industry?
What is the impact of Big Data on Retail Banking Industry?
What is the impact of Big Data on Retail Industry?
What is the impact of Big Data on Technology Industry?
What is the impact of Big Data on Information Technology Industry?
What is the impact of Big Data on Internet of Things (IoT) Industry?
What is the impact of Big Data on Media Industry?
What is the impact of Big Data on Education Industry?
What is the impact of Big Data on Healthcare Industry?



Fresher Jobs | Experienced Jobs | Government Jobs | Walkin Jobs | Company Profiles | Interview Questions | Placement Papers | Companies In India | Consultants In India | Colleges In India | Exams In India | Latest Results | Notifications In India | Call Centers In India | Training Institutes In India | Job Communities In India | Courses In India | Jobs by Keyskills | Jobs by Functional Areas

Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes

Gate Articles | Gate Books | Gate Colleges | Gate Downloads | Gate Faqs | Gate Jobs | Gate News | Gate Sample Papers | Gate Training Institutes

MBA Articles | MBA Books | MBA Case Studies | MBA Business Schools | MBA Current Affairs | MBA Downloads | MBA Events | MBA Notifications | MBA FAQs | MBA Jobs
MBA Job Consultants | MBA News | MBA Results | MBA Courses | MBA Sample Papers | MBA Interview Questions | MBA Training Institutes

GRE Articles | GRE Books | GRE Colleges | GRE Downloads | GRE Events | GRE FAQs | GRE News | GRE Training Institutes | GRE Sample Papers

IAS Articles | IAS Books | IAS Current Affairs | IAS Downloads | IAS Events | IAS FAQs | IAS News | IAS Notifications | IAS UPSC Jobs | IAS Previous Question Papers
IAS Results | IAS Sample Papers | IAS Interview Questions | IAS Training Institutes | IAS Toppers Interview

SAP Articles | SAP Books | SAP Certifications | SAP Companies | SAP Study Materials | SAP Events | SAP FAQs | SAP Jobs | SAP Job Consultants
SAP Links | SAP News | SAP Sample Papers | SAP Interview Questions | SAP Training Institutes |




Copyright ©2003-2016 CoolInterview.com, All Rights Reserved.
Privacy Policy | Terms and Conditions



Cache = 0.003906 Seconds