:: 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 (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
can you tell me what are the steps should follow to do delay signing. HCL 1
Can you override private virtual methods?   4
What does the parameter Initial Catalog define inside Connection String?   5
What?s the C# equivalent of C++ catch (?), which was a catch-all statement for any possible exception?   1
what is serilization? Protech 6
Can you override private virtual methods?   5
What are the ways to deploy an assembly?   3
Can we have private constructor in our class file. When we are trying to create instance for the class will it create or throw error regarding that?   5
define ispostback and give some examples   2
What?s the difference between the Debug class and Trace class?   2
How do you debug an ASP.NET Web application?   1
In c#.Net Application For DataGridview binding which method is faster in below two case?Why..? 1)looping-Using For loop 2)Databinding direct using Dataset CTS 4
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.   ::