Abstract Class and Its Facts: Public Abstract Void Mymethod
Abstract Class and Its Facts: Public Abstract Void Mymethod
1. can't create an instance/object of them - if you try, you will get a compile error.
3. The sealed modifier prevents a class from being inherited and the abstract modifier requires a
class to be inherited.
4. A non-abstract class derived from an abstract class must include actual implementations of all
inherited abstract methods and accessors.
5. Use the abstract modifier in a method or property declaration to indicate that the method or
10. It is an error to use the static or virtual modifiers in an abstract method declaration.
11. Abstract properties behave like abstract methods, except for the differences in
declaration and invocation syntax.
An abstract class that implements an interface might map the interface methods onto abstract
methods. For example:
interface I
{
void M();
}
abstract class C : I
{
public abstract void M();
}
13.