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
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 |
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 |
What is the difference while using directive vs using statement ?
What is mvc pattern in c#?
Does a loop recorder have to be removed?
What does convert toint32 mean?
What is generic types in c#?
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.
What?s the difference between System.String and System.StringBuilder classes?
When should we use sealed class in c#?
Which compiler switch creates an xml file from xml comments in the files in an assembly?
What are abstract classes in c#?
What is gac? What are the steps to create an assembly and add it to the gac?
What is managed or unmanaged code?