Un-Answered Questions { C Sharp }

What is the difference between == and object.equals?

503


What will be the output of the following code?

507


What type of data type conversion happens when the compiler encounters the following code?

541


Can you declare a class or a struct as constant?

545


When can a derived class override a base class member?

523


Will the following code compile?

555


What are the 3 different types of arrays?

563


Are structs value types or reference types?

569


What do you mean by saying a "class is a reference type"?

510


Can I use exceptions in c#?

540


Can you access a hidden base class method in the derived class?

498


Explain what is an interface in c#?

521


If you donot specify an access modifier for a method, what is the default access modifier?

543


What are access modifiers used for?

593


Can the accessibility of a type member be greater than the accessibility of its containing type?

556