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?
Answer Posted / 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 |
Post New Answer View All Answers
Which of these string definitions will prevent escaping on backslashes in c#?
To catch any possible exception What is the C# syntax written ?
What is the output of TextWriterTraceListener redirected?
Describe how a .net application is compiled and executed
What is the use of generics in c#?
What is parsing?
If the interface in c# only contains the declaration of the methods and we need to define those methods in the class, then why we use the interface?
What is public void in c#?
Which is faster abstract class or interface in c#?
What is the main purpose of delegates in c#?
What is sorting in c#?
What is dll file in c#?
Explain how do you convert a value-type to a reference-type?
What is asenumerable in c#?
Explain the difference between a Private Assembly and a Shared Assembly