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
What is the difference between package and interface?
When is a class declared as a class abstract?
Why do I get an error (cs1006) when trying to declare a method without specifying a return type?
How many destructors can a class have?
Describe ways of cleaning up objects in c#.
How to declares a two-dimensional array in C#?
What is difference between array and list?
What is garbage collector and where should you use in .NET?
Why interface is required?
Why abstract class can not be instantiated?
Is an array an object c#?
What are the collections in c#?
Explain concurrency with aop?
Which attribute is used in order that the method can be used as webservice?
What is callback in c#?