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


Please Help Members By Posting Answers For Below Questions

What is a multi line comment?

557


What is the relationship between a process, application domain, and application?

502


What is difference between int and int in c#?

453


What is serialization of data?

512


what is difference between is and as operators in c#?

537






What is int64 in c#?

497


What does immutable mean in c#?

508


What is cosole application?

577


What is the use of jit ? Jit (just - in - time) is a compiler which converts msil code to

526


What is the syntax for calling an overloaded constructor within a constructor?

539


What is an icollection in c#?

491


What is clr in c#?

491


What is difference between events and delegates?

493


Is the following code legal?

567


What is the difference between const and readonly in c#.net?

505