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 do you mean by string objects are immutable?
Whats the use of string builder?
Can we customize the serialization process?
Does the variables of a private class-level inherited?
What is assembly manifest?
What is poco c#?
What is assembly c#?
Describe ways of cleaning up objects.
Explain the difference between passing parameters by value and passing parameters by reference with an example?
Is type nullable c#?
What is int32 in c#?
What is the difference between ref & out parameters?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)