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 task parallel library?

694


What is application object in c#?

679


How many types of collections are there in c#?

647


if a method is marked as protected internal who can access it?

756


What is a bool in c#?

635


What's the difference between the debug class and trace class? Documentation looks the same.

687


Does main have to be static c#?

705


Is nullable type c#?

682


What is the difference between asp net and c#?

670


What is the name of c# compiler?

827


What is the and operator in c#?

695


Is datetime immutable c#?

667


What is a long in c#?

646


What are extender provider components? Explain how to use an extender provider in the project.

654


What are the differences between events and delegates in c#?

653