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?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
What is difference between managed and unmanaged code?
0 Answers SwanSoft Technologies,
Do void methods have parameters?
if we inherit class in stack so object of stack will store in stack or heap? as class a { int s; public aa(){} } stack mystack:a { } mystack obj; ans: about obj
What are functions in c#?
What is dynamic dispatch?
What is #region in c#?
What is the main method?
What's difference about switch statements in C# ?
Which CSS property can be used for controlling the stretchiness of a control?
What are scriptable objects?
Can a abstract class have a constructor?
Why static constructor is parameterless in c#?