Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


why do we use Overloading, Overriding, Boxing, Unboxing,
and what is the use of these ?

Answers were Sorted based on User's Feedback



why do we use Overloading, Overriding, Boxing, Unboxing, and what is the use of these ?..

Answer / vijay rana

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
boxing:
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 ?    30 Yes 6 No

why do we use Overloading, Overriding, Boxing, Unboxing, and what is the use of these ?..

Answer / x

in case of multiple use of codeing we use this methods.to
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

why do we use Overloading, Overriding, Boxing, Unboxing, and what is the use of these ?..

Answer / kumar

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

Post New Answer

More C Sharp Interview Questions

How many digits is a 32 bit number?

0 Answers  


What is the difference between const and static read-only?

0 Answers  


What?s the difference between System.String and System.StringBuilder classes?

3 Answers  


What is sqldataadapter in c#?

0 Answers  


How to authenticate web service? When you enter the web service url in browser it should ask username and password. After entering the un&pwd we have to show its methods and service description(wsdl).

3 Answers  


can we throw execption from catchblock

4 Answers   Accenture,


Can private virtual methods be overridden in c#.net?

0 Answers  


Is java better than c sharp?

0 Answers  


What is xaml file in c#?

0 Answers  


For read-only operation which property you have to designated?

0 Answers   Siebel,


Is php better than c#?

0 Answers  


How to rotate an Image in C#?

0 Answers   Petranics Solutions,


Categories