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 a class c#?
What do you mean by for each loop?
Why is c# better than java?
What is value type and reference type?
Is there an equivalent of exit() for quitting a c# .net application?
Describe the overview of clr integration.
What?s a satellite assembly?
Difference between value and reference type.
What is the usage of transponders?
How string definitions will prevent escaping on backslashes in C#?
What do you mean by stack and heap in c#?
What is the difference between returning iqueryable vs ienumerable?