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
Hello! How to do this: "Create manifest utility intended for creating update content files. Application should take a set of files as input parameter and generate XML based manifest file as output one." I use C# and vs.net 2003. It's urgent! Help please, thanks. Mayana
What are different types of classes in c#?
What is a nested type. Give an example?
What is parallel foreach c#?
What is expression c#?
Do loops in c#?
how encapsulation is implemented in c#
What is instantiating a class?
explain the features of static/shared classes.
What does addressof operator do in background ?
write a program to find the biggest palindrome in the given string
What are partial types in c#?
windows c# using datagridview in edit form sql server
What is the difference between disposing of () and finalize() methods in c#?
What is multiple interface in c#?