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 / 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 |
Post New Answer View All Answers
What is concatenation and when should it be used?
What is the difference between null and string empty in c#?
While debugging a C# application can you change the value of a variable?
What is interface inheritance?
List down the differences between “dispose” and “finalize” methods in c#.
What is public or shared assemblies ?
Are tuples immutable c#?
Which class does the remote object has to inherit?
write code for inserting and updating recoards in sql server database using connected architecture & records shoulds displayed in grid view ( use c# )
Can extension methods access private members?
What is the default value of object in c#?
What do you understand by the terms datareader object and dataset object?
What are the types of constructors?
What are the desktop applications?
Why delegate is used in c#?