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 / anna
if it is a value type in base class , it will also be a
value type in the derived.
if it is reference type, then it is reference.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is the c# equivalent of c++ catch (…), which was a catch-all statement for any possible exception? Does c# support try-catch-finally blocks?
Explain polymorphism in c# with a simple example?
How to get the sum of last 3 items in a list using lambda expressions?
What are the Types of optimization and name a few and how do u do?
Can we make a Static Constructor Parameterized? Give Reason with your answer
Is cli same as the clr?
How to find the current application file path while runtime?
What are the variables in c#?
What is the difference between c and c sharp?
What is clr namespace?
How can we sort an array in c#?
Is object an int c#?
What are the Types of caching
What is the property of a class in c#?
What are the Types of instancing properties and explain each. Explain the difference between multiuse,singleuse and globalmultiuse and which is default