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 an inheritance ?Give an example in which inheritance is used?
What's the difference between a method and a procedure?
What are escape sequences explain with example?
Is stringbuilder thread safe c#?
Explain how to implement an object pool in c#.net
Can a sealed class be used as a base class?
What is the advantage of singleton class?
What is meaning of type safety in c#?
How many constructor can a class have?
If you donot specify an access modifier for a method, what is the default access modifier?
Which is better javascript or c#?
How many digits are in an integer?
What does do in c#?
What is an enumerator c#?
What is xaml file in c#?