C# Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 199 Page Views: 

Can operator [] be overloaded?



Posted By: Avi Date: 14 October 2010 03:42:32 AM
 Answer:

no. You can define indexers.


Posted By: avibtech


Date: 14 October 2010 03:42:32 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image wjIUCF
Related Questions
C# : Will this code compile: public static const int A = 10;

Will this code compile: public static const int A = 10;

No, const cannot be static
Category: C# Date: 10/13/2010 4:19:46 PM
C# : What will be the output of code:
int x = 0;
do
{
Console.Write(x++);
} while(x<5);
C# : What is Graphics object and how do you use it?

What is Graphics object and how do you use it?

Graphics class encapsulates GDI+ drawing surface. Grp.DrawLine(new Pen(Color.Black, 3), 10.0, 50, 34....
Category: C# Date: 10/13/2010 3:26:47 PM
C# : How do you define class that uses generic type?

How do you define class that uses generic type?

class Name<T> {}
Category: C# Date: 10/13/2010 3:10:32 PM
C# : How do you access base class methods in derived class?

How do you access base class methods in derived class?

using base keyword
Category: C# Date: 10/13/2010 2:47:14 PM