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...


If a class is having 4 variables namely type double,type
integer,type string,type decimal.

If we create an instance of that class those variables which
gets into this instance are value types or reference types?

Answers were Sorted based on User's Feedback



If a class is having 4 variables namely type double,type integer,type string,type decimal. If we..

Answer / anna

if it is a value type in base class , it will also be a
value type in the derived.

if it is reference type, then it is reference.

Is This Answer Correct ?    5 Yes 0 No

If a class is having 4 variables namely type double,type integer,type string,type decimal. If we..

Answer / kishore.a

It will be value type.

Is This Answer Correct ?    0 Yes 0 No

If a class is having 4 variables namely type double,type integer,type string,type decimal. If we..

Answer / parmjit

It depends upon member's data type.

If it is of primitive type, structure or enum type, it will
be of value type

Otherwise it will be of reference type.

Is This Answer Correct ?    0 Yes 1 No

If a class is having 4 variables namely type double,type integer,type string,type decimal. If we..

Answer / thirdware

Its value type..........

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More C Sharp Interview Questions

How to block a class from being inherited further?

0 Answers  


What are object pooling and connection pooling and difference? Where do we set the Min and Max Pool size for connection pooling?

0 Answers  


Explain About sn.exe

0 Answers  


What is marshalling and what are different kinds of marshalling?

0 Answers  


What is scope c#?

0 Answers  


What is a proxy of the server object in .NET Remoting?

1 Answers   BirlaSoft,


What is difference between managed and unmanaged code?

0 Answers   SwanSoft Technologies,


What is the difference between a function and a method?

0 Answers  


What is the difference between CONST and READONLY?

0 Answers   BirlaSoft,


What is the difference between “dispose” and “finalize” variables in c#?

0 Answers  


Which of the following API is used to hide a window?

0 Answers   3i Infotech,


Why delegates are safe in c#?

0 Answers  


Categories