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 Diff Gram
Can abstract class have constructor in c#?
Why are there five tracing levels in System.Diagnostics.TraceSwitcher?
What is the c# equivalent of c++ catch (...), Which was a catch-all statement for any possible exception?
What is generic delegates in c#?
Define strong name in c#?
What are the 2 kinds of data type conversions in c#?
What is difference between Method and function
In dynamic link library, which api is used for load library?
What is an array? Give the syntax for a single and multi-dimensional array?
How do I move from one form to another in c#?
How do I create a new form in c#?