ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  C Sharp
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
what is overloading & overriding
 Question Submitted By :: Kiran
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is overloading & overriding
Answer
# 1
Overloading is simply the 2 or more than two functions with 
different signatures.

Overriding is related with Polymorphism, where virtual 
function declared in base class is override in the derived 
class with the same name. And compiler during runtime 
decide which function to be called based on the object 
(Base Class or Derived Class) used to call this function.
 
Is This Answer Correct ?    8 Yes 0 No
Vishal Shah
 
  Re: what is overloading & overriding
Answer
# 2
Overloading is a concept in OOPS where we have a similar 
methods of same name but diferent signature.The return type 
may be same or different but the signature has to be 
different.It is an example of static polymorphism.

Overriding is a conecpt where we have the same method 
(signature and return type) both is child class and parent 
class. Now why we have the same method ? You will have that 
thing happen when you want to add more funtionalities to a 
method corresponding to your child class. This is an 
example of runtime polymorphism
 
Is This Answer Correct ?    5 Yes 0 No
Ashish
 
 
 

 
 
 
Other C Sharp Interview Questions
 
  Question Asked @ Answers
 
how to change a value of particular cell in a data grid  3
What?s the difference between // comments, /* */ comments and /// comments? Visual-Soft2
If a class is having 4 variables namely type double,type integer,type string,type decimal. If we create an instance of that class those variables which gets into this instance are value types or reference types? Kanbay3
What happens in synchronisation? Tech-Mahindra2
what is uniary operators and binary operators and what is the difference Protech1
give suitable code for all login controls  1
What is the Difference between a sub and a function? Wipro3
OOPs concept ? MMTS1
what does static void Main(string[] args) in C# mean???????? ssinformatics3
Can we inherit a private class in chsarp? how? explain(with code) ? Techno-Labs3
What?s a delegate?  1
Hello Friends..am Mohammed riyash..final year BCA in Jamal Mohamed College 2009. Trichy. My doubt is while connecting SQL2005 Built in Database withing the Visual Studio 2005 Framework.. I am getting the error.. That " An Error occurred and it may be due to , under the default settings of the Server, the connection cannot be established.." But the code works in MS Access for me.. Both in VB.Net and C#.Net am getting the same error.. Any genius please Message me to 9994558822 or mail me.. riyash.ips@gmail.com  3
What?s a satellite assembly? Visual-Soft2
How do you implement Inheritance in dot net ? MMTS3
can we access main() using objects? ssinformatics1
What’s the difference between System.String and System.Text.StringBuilder classes with example  2
Will finally block get executed if the 1exception had not occurred?  3
What?s the implicit name of the parameter that gets passed into the class? set method?  1
What are properties and indexer? TCS2
What’s difference between Association, Aggregation and Inheritance relationships? TCS1
 
For more C Sharp Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com