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 the difference while using directive vs using statement ?

0 Answers  


What is mvc pattern in c#?

0 Answers  


Does a loop recorder have to be removed?

0 Answers  


What does convert toint32 mean?

0 Answers  


What is generic types in c#?

0 Answers  






Hi to everybody. Lastweek i had taken an interview on c#. They ask what is boxing & unboxing, Masking.Please tell the answer and it is useful for me.

8 Answers  


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

1 Answers  


When should we use sealed class in c#?

0 Answers  


Which compiler switch creates an xml file from xml comments in the files in an assembly?

0 Answers   Siebel,


What are abstract classes in c#?

0 Answers  


What is gac? What are the steps to create an assembly and add it to the gac?

0 Answers  


What is managed or unmanaged code?

0 Answers  


Categories