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

what is Diff Gram

2 Answers   HCL, Nippon,


Can abstract class have constructor in c#?

0 Answers  


Why are there five tracing levels in System.Diagnostics.TraceSwitcher?

1 Answers  


What is the c# equivalent of c++ catch (...), Which was a catch-all statement for any possible exception?

0 Answers  


What is generic delegates in c#?

0 Answers  






Define strong name in c#?

0 Answers  


What are the 2 kinds of data type conversions in c#?

0 Answers  


What is difference between Method and function

3 Answers  


In dynamic link library, which api is used for load library?

0 Answers   C DAC,


What is an array? Give the syntax for a single and multi-dimensional array?

0 Answers  


How do I move from one form to another in c#?

0 Answers  


How do I create a new form in c#?

0 Answers  


Categories