50
50
Mar 16, 2011
public abstract class House
{
public void OpenDoor()
{
Console.WriteLine("Door opens");
}
}
It will not show complie time error. you can use this class as base class of other class
50
50
Mar 16, 2011
In some scenario, you might want to provide a default implementation for your class or if you don't want your derived classes will define their own implementation, then the member will not be declared as abstract.