1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-08-01 16:28:03 +08:00

泛型实例修改

This commit is contained in:
谭九鼎 2021-06-02 22:12:52 +08:00 committed by GitHub
parent 4545a7f595
commit 53e24b4fe8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -316,7 +316,7 @@ class GeneratorImpl<T> implements Generator<T>{
实现泛型接口,指定类型:
```java
class GeneratorImpl<T> implements Generator<String>{
class GeneratorImpl implements Generator<String>{
@Override
public String method() {
return "hello";