i got a sample code for sealed abstract class. i just do know what is the use of sealed abstract class. whatever is abstract that has to be extended and sealed keyword prevent to extend the class. so when class is sealed & abstract then it can be extended and also instantiated. so what will be the real use of sealed abstract class?
some one told me it will solve the purpose of static class. if possible please discuss the use of sealed abstract class with few sample code and scenario when a class is required to design as a sealed abstract class.
sealed abstract class BaseBook : IBook
{
private string _title;
public virtual string Author
{
get
{
Console.WriteLine("Base book GET!");
return _title;
}
set
{
Console.WriteLine("Base book SET!");
_title = value;
}
}
public string Title
{
get;
set;
}
}
thanks