CoolInterview.com - World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions OneStopTesting.com - Testing EBooks, Tutorials, Articles, Jobs, Training Institutes etc.
OneStopGate.com - Gate EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
OneStopMBA.com - MBA EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
OneStopIAS.com - IAS EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
OneStopSAP.com - SAP EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
OneStopGRE.com - of GRE EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.

Sponsored Links

Interview Questions
Our Services



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 1968
Rate it!


Answers:

Source: CoolInterview.com

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



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

Source: CoolInterview.com

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

Source: CoolInterview.com

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



Posted by: srividya

Contact srividya Contact srividya

Source: CoolInterview.com

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

Source: CoolInterview.com

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

Source: CoolInterview.com

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

Source: CoolInterview.com

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

Source: CoolInterview.com

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

Source: CoolInterview.com

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

Source: CoolInterview.com

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

Source: CoolInterview.com

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
How to Add the key to Windows Backup Agent
How to Installing Backup Agent on Windows Manually ?
What are the Advantages of Agent vs Agentless Backup?
How to Setting CTERA C200 ?
CTERA C200 Full Text Search Configuration ?
CTERA C200 Network Shares Configuration
CTERA Synchronizing Files and folders
CTERA C200 Cloud Backup Control Panel Configuration
Explain CTERA C200 Backup Files Configuration ?
CTERA C200 Cloud Backup Scheduling Configuration
How to CTERA C200 Configuration ?
CTERA C200 Local Backup and Restore ?
User Management feature of CTERA
CTERA Storage Configuration Arrays, Volumes & Snapshots
CTERA C200 Cloud Services Configuration ?
How CTERA Linking up to the Cloud ?
Explain CTERA C200 Network Configuration
How CTERA C200 Configuration Alert Screen ?
How to Configuration CTERA C200 Event Log Screen ?
How to execute an sql query? How to fetch its result ?



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.015625 Seconds