:: Home Page            
 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                      
Categories >> Software >> Microsoft Related >> C Sharp


 Visual Basic interview questions  Visual Basic Interview Questions (615)
 C Sharp interview questions  C Sharp Interview Questions (722)
 ASP.NET interview questions  ASP.NET Interview Questions (1444)
 VB.NET interview questions  VB.NET Interview Questions (151)
 COM+ interview questions  COM+ Interview Questions (41)
 ADO.NET interview questions  ADO.NET Interview Questions (199)
 IIS interview questions  IIS Interview Questions (86)
 MTS interview questions  MTS Interview Questions (5)
 Crystal Reports interview questions  Crystal Reports Interview Questions (62)
 BizTalk interview questions  BizTalk Interview Questions (34)
 Dot Net interview questions  Dot Net Interview Questions (861)
 Exchange Server interview questions  Exchange Server Interview Questions (103)
 SharePoint interview questions  SharePoint Interview Questions (25)
 WCF interview questions  WCF Interview Questions (8)
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions (193)
why do we use Overloading, Overriding, Boxing, Unboxing, 
and what is the use of these ?
 Question Submitted By :: C-Sharp
I also faced this Question!!     Answer Posted By  
# 1
overloding:- if we want to use a function which have
different behaviour in different situation means for
different signature it behaves differently it is called
function overloding
overriding:- if we want a function which have the same
behaviour in the supercalss as well as in the subclass also
and in the case of overriding method signature and return
type should be same , it is called method overriding
if we want to convert a value type value in an object it
is called boxing
for example
int m=10;
object om=10;
it does not require any explicitly conversion
unboxing:-unboxing means when we want to convert a object
type to a value type , it is called unboxing
int m=10
object om=m;
byte n=(byte)om;
Is This Answer Correct ?    29 Yes 6 No
Vijay Rana
# 2
in case of multiple use of codeing we use this
reuse code in all forms.
overloading ,overriding is used to implement methods of
already writtened method used to fill datagrid,

we do boxing in case of saveing data in user defined
form,and try to get data in client defined form.and try to
utilize boxing for type conversion problam
Is This Answer Correct ?    13 Yes 7 No
# 3
overloading: using smae function or operator in different
and various way is called the overloading. this is because
of situation and the use. mainly two types are
1). Function overloading
area pi.r^2;
area l.b;

same function area and hence function overloading

2). Operator overloading
int add;
int float;
Is This Answer Correct ?    4 Yes 5 No

Other C Sharp Interview Questions
  Question Asked @ Answers
How can you overload a method?   6
If u declare two interfaces withsame methodnmae .prototype how can u call the particular method from class? Microsoft 4
How we free the memory in C#.NET. Synechron 3
What are properties and indexer? TCS 3
coding for delegates? Tech-Mahindra 3
7.What are typed data set? Mphasis 2
Is there any way to access private memebers of an object from another object? TCS 4
Can we define a variable with the access modifier private in an interface? IBM 7
what is namespace?   6
what is meant inheritance. can you exaplain what kind inhertance ussed in your project   1
What?s an abstract class? NIIT 4
Which is algorithm is used to Manage the Memory in .net ?? TCS 7
For more C Sharp Interview Questions Click Here 

Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
Copyright 2013  All Rights Reserved.   ::