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 |
How to block a class from being inherited further?
What are object pooling and connection pooling and difference? Where do we set the Min and Max Pool size for connection pooling?
Explain About sn.exe
What is marshalling and what are different kinds of marshalling?
What is scope c#?
What is a proxy of the server object in .NET Remoting?
What is difference between managed and unmanaged code?
0 Answers SwanSoft Technologies,
What is the difference between a function and a method?
What is the difference between CONST and READONLY?
What is the difference between “dispose” and “finalize” variables in c#?
Which of the following API is used to hide a window?
Why delegates are safe in c#?
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)