|
No, we can have only methods, properties, indexers and enums inside the interface.
|
Category:
C#
|
Date:
7/3/2010 1:54:37 PM
|
|
|
|
Static class we define when we do not want to create a object of class, all methods of static class ....
|
Category:
C#
|
Date:
7/3/2010 1:54:06 PM
|
|
|
|
1. Abstract class can contain the prototype of method and/or implementation of methods. 2. Direct o....
|
Category:
C#
|
Date:
7/3/2010 1:50:28 PM
|
|
|
|
public returntype PropertyName { get { //property implementation goes here } // Do not write the se....
|
Category:
C#
|
Date:
2/5/2010 1:51:32 PM
|
|
|
|
When we set out to implement a class using inheritance, we must first start with an existing class f....
|
Category:
C#
|
Date:
2/5/2010 1:49:08 PM
|
|
|
|
By using Abstract classes/functions.
|
Category:
C#
|
Date:
2/5/2010 1:47:04 PM
|
|
|
|
The "out" keyword causes arguments to be passed by reference. This is similar to the ref k....
|
Category:
C#
|
Date:
12/5/2009 12:09:31 AM
|
|
|
|
The main difference between Close() and Dispose() method is, when Close() method is called, any mana....
|
Category:
C#
|
Date:
12/4/2009 11:14:47 PM
|
|
|
|
C# does not support multiple inheritance. But C# allows to implement multiple inheritence using inte....
|
Category:
C#
|
Date:
11/30/2009 2:36:09 PM
|
|
|
|
When a virtual method is called on an object reference, the actual type of that object is used to de....
|
Category:
C#
|
Date:
11/30/2009 4:45:28 AM
|
|
|
|
Class member declared as protected can be accessed either only within the same class or within the c....
|
Category:
C#
|
Date:
10/30/2009 7:03:34 AM
|
|
|
|
[Obsolete] public int MethodName() {...} OR [Obsolete(\"This is a message describing why this....
|
Category:
C#
|
Date:
10/30/2009 6:54:21 AM
|
|
|
|
It's not possible to declare a method as 'private virtual'. So overriding private virtual method doe....
|
Category:
C#
|
Date:
10/28/2009 5:36:41 AM
|
|
|
|
The "fixed" statement prevents the garbage collector from relocating a movable variable. T....
|
Category:
C#
|
Date:
10/28/2009 5:25:18 AM
|
|
|
|
Yes
|
Category:
C#
|
Date:
10/28/2009 5:13:06 AM
|
|
|