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 advantage of dependency injection?
How many kinds of elements an array can have?
What can we do to handle multiple exceptions?
What are console applications used for?
Is a valid int value?
What is sqlcommand in c#?
How do I get deterministic finalization in c#?
Explain how do I get deterministic finalization in c#?
What are data types in C#?
What can be done with c#?
If the original method is not static you can declare an override method to be static or not?
what are implementation inheritance and interface inheritance?
What is difference between write and writeline?
What is difference between singleordefault and firstordefault?
Can a struct inherit from another struct or class in c#?