diff --git a/notes/Java 基础.md b/notes/Java 基础.md index e9302ac6..2b061e0e 100644 --- a/notes/Java 基础.md +++ b/notes/Java 基础.md @@ -572,10 +572,7 @@ public class AbstractExtendClassExample extends AbstractClassExample{ ``` ```java -AbstractClassExample ac1 = new AbstractClassExample(); // 'AbstractClassExample' is abstract; cannot be instantiated -``` - -```java +// AbstractClassExample ac1 = new AbstractClassExample(); // 'AbstractClassExample' is abstract; cannot be instantiated AbstractClassExample ac2 = new AbstractExtendClassExample(); ac2.func1(); ```