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 task parallel library?
What is application object in c#?
How many types of collections are there in c#?
if a method is marked as protected internal who can access it?
What is a bool in c#?
What's the difference between the debug class and trace class? Documentation looks the same.
Does main have to be static c#?
Is nullable type c#?
What is the difference between asp net and c#?
What is the name of c# compiler?
What is the and operator in c#?
Is datetime immutable c#?
What is a long in c#?
What are extender provider components? Explain how to use an extender provider in the project.
What are the differences between events and delegates in c#?