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
Why do we need generics in c#?
What is .net c#?
Can you declare a class or a struct as constant?
can you create a function in c# which can accept varying number of arguments
write a program to find the biggest palindrome in the given string
What is the interface in c#?
Can we inherit two classes in c#?
How to sort an int array in c#?
What is the extension of c# file?
Explain About web methods and its various attributes
What is a c# delegate?
What is difference between Trace and Debug
Define constructor in c#.
What is c sharp used for?
What is difference between write and writeline in c#?