mirror of
https://github.com/CyC2018/CS-Notes.git
synced 2025-07-13 15:34:09 +08:00
auto commit
This commit is contained in:
@ -572,10 +572,7 @@ public class AbstractExtendClassExample extends AbstractClassExample{
|
|||||||
```
|
```
|
||||||
|
|
||||||
```java
|
```java
|
||||||
AbstractClassExample ac1 = new AbstractClassExample(); // 'AbstractClassExample' is abstract; cannot be instantiated
|
// AbstractClassExample ac1 = new AbstractClassExample(); // 'AbstractClassExample' is abstract; cannot be instantiated
|
||||||
```
|
|
||||||
|
|
||||||
```java
|
|
||||||
AbstractClassExample ac2 = new AbstractExtendClassExample();
|
AbstractClassExample ac2 = new AbstractExtendClassExample();
|
||||||
ac2.func1();
|
ac2.func1();
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user