:: 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
What is marker interface? TCS 1
About delegates and events? ADITI 2
FOR EXAMPLE : CLASS Dotnet { } creating object: Dotnet dn=new Dotnet(); NOW THE QUESTION IS WHICH IS CALLED AS OBJECT ?EITHER dn OR new Dotnet() and CAN YOU PROVE YOUR ANSWER?????PLEASE REPLY...   1
Error handling and how this is done ? Digital-GlobalSoft 2
HOw to judge a person for a team if you are allowed to ask only 2 questions to him? TCS 2
For a combobox and a listbox same datatable given as a datasource. Now problem is that whenever focus of listbox changes selected value of combobox also get change or vice versa. what to be done to avoid this. According to requirement we cannot make different datasouce. Syntel 2
define ispostback and give some examples   2
directcast(123.34,integer) - should it throw an error? Why or why not? Wipro 2
Explain ACID rule of thumb for transactions.   1
what is work of continue statement in C#?   3
Can a structure be inherited by a class?   2
I created a class which is inherited from interface IDisposable. Now if I use object of this class with using keyword. Then How the dispose method will get call. Does garbage collector call it or some else. Sapient 2
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.   ::