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 / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are collection classes?

665


update data in an xml file which resides in solution itself, using silverlight 4.0

1541


2. What happened when BO object has been called?

1741


In dynamic link library, which api is used for load library?

709


Can we use "this" command within a static method?

717


What is the difference between list and dictionary in c#?

640


What is a variable in c#?

672


How does array sort work?

660


What is Delegate and what is it used for ?

760


What is the benefit of delegate in c#?

652


When can a derived class override a base class member?

671


What is Reflection in .NET? Namespace? How will you load an assembly which is not referenced by current assembly?

708


What is the difference between double and decimal in c#?

664


what is IFormatable

758


in the nunit test framework, which attribute must adorn a test class in order for it to be picked up by the nunit gui?

898