:: 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 (1443)
 VB.NET interview questions  VB.NET Interview Questions (150)
 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 (33)
 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
explain synchronous and asynchronous in C# Synechron 2
What is the best method to fill the GridView. using SqlDataReader or Dataset and why CA 5
What is Serialization and how do we implement (in real time scenario)   1
3. Describe the process of interact UI to BAL n DAL? Mphasis 2
What is a pre-requisite for connection pooling?   1
What is the difference between Abstract and Interface? HCL 22
Why can?t you specify the accessibility modifier for methods inside the interface?   2
Why can?t you specify the accessibility modifier for methods inside the interface? Mind-Tree 3
What if an error occurs in Catch block, how can you prevent it? IBM 2
What namespaces are necessary to create a localized application? Visual-Soft 2
Can you allow class to be inherited, but prevent the method from being over-ridden?   5
Can you allow class to be inherited, but prevent the method from being over-ridden?   1
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.   ::