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
if we are updating a database using thread, and mean while application crashes or thread being aborted then what will happen in Database? Rollback or Database will be updated? Please explain with different scenario.
Why do we need constructor in c#?
What is a multi line comment?
What are the advantages of properties in c#?
What is fcl in c#?
how to prevent a class from being inherited in c#.net?
How do you concatenate in c#?
What are circular references?
What is c# and why it is used for?
What is array class in c#?
What is reflection c#?
What is dto c#?
Explain states of a thread in c#?
What is variable in c#?
Differentiate between sqlclient oledb and providers?