C# seal Functions and Classes
In this chapter you will learn:
Description
We can stop overridding with seal
keyword.
Example
Example for C# seal Functions and Classes
class Shape{/*from w w w .java2 s . c o m*/
public virtual int Area{
get{
return 0;
}
}
}
class Rectangle:Shape{
public int width;
public int height;
public sealed override int Area{
get{
return width * height;
}
}
}
Next chapter...
What you will learn in the next chapter:
- What are Abstract Classes and Abstract Members
- Syntax for C# Abstract Classes and Abstract Members
- Example for Abstract Classes and Abstract Members