String is an

Skill/Topic: Beginner
A) object type
B) reference type

Showing Answers 1 - 12 of 12 Answers

Ravi

  • Dec 3rd, 2005
 

It's object type

  Was this answer useful?  Yes

samiksc

  • Dec 7th, 2005
 

(B) is correct: string is a predefined reference type.

 The C# lang specification on MSDN states

'The string type is a sealed class type that inherits directly from object. Instances of the string class represent Unicode character strings.'

  Was this answer useful?  Yes

Jimbobob

  • May 31st, 2006
 

if it inherits from object, then wouldn't it follow suit that it is of type object?

  Was this answer useful?  Yes

prasad mapari

  • Mar 24th, 2015
 

B . its reference type. Bcos string dosnt have default or predefined size. Even sometimes it looks like a value type but the actual gets stored in dynamic memory and t reference wl b stored in stack. Thats it

  Was this answer useful?  Yes

Vasu

  • Apr 10th, 2015
 

B

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions