Can we have an Abstract class without having any abstract method ??
Interview question and answer by: Pradsir
| Posted on: 2/18/2011 | Category: OOPS Interview questions
| Views: 2909 | | Points: 40
Yes we can have Abstract class without having any abstract method ..
See the code below
abstract class A
public void Hello()
Console.WriteLine(" Say Hi");
public static void Main()
B b1 = new B();
// Output is Say HI
the class A is abstract class.. but it does not have any abstract methods..
| Alert Moderator
Found interesting? Add this to: