1. In C #, abstract methods are overridden in subclasses using the keyword override, which uses the abstract keyword in methods that define the parent class and the parent class. In C #, the virtual method overrides using the keyword override in the subclass, using the virtual keyword in the method that defines the parent class. 2. (1) A class is decorated with the abstract keyword that is the class of abstraction (2) The abstract class cannot be instantiated (3) The abstract method cannot have a method body, and even {} cannot have (4) abstract methods can only exist in abstract classes, but abstract classes may have non-abstract methods (5) Abstract classes cannot be static classes and sealed classes (6) All methods in an abstract class must be overridden by a quilt class, unless the subclass is also abstract (7) The purpose of the abstract method is to constrain the form in which the method exists in the class (parameter list and return value type) (8) A key to rewrite all abstract methods shortcut keys: (without Input method in case) Ctrl +. and shift+alt+f103. The base keyword can be used to access the current object's basic class object
Inheritance and polymorphic error correction