mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-08-01 16:28:03 +08:00
泛型实例修改
This commit is contained in:
parent
4545a7f595
commit
53e24b4fe8
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user