public abstract class A implements B不太理解

学习 时间:2026-06-05 21:56:34 阅读:9388
public abstract class A implements B不太理解implements B 的是什么意识?

最佳回答

个性的薯片

甜美的小甜瓜

2026-06-05 21:56:34

泛型技术,看完代码,你将知道很多。public interface B {public T get();}public abstract class A implements B {public Object get() {//code here,and return a Object type value。return null;}} public abstract class C implements B {public Integer get() {//code here,and return a Integer type value。return null;}}

最新回答共有2条回答

  • 小巧的墨镜
    回复
    2026-06-05 21:56:34

    泛型技术,看完代码,你将知道很多。public interface B {public T get();}public abstract class A implements B {public Object get() {//code here,and return a Object type value。return null;}} public abstract class C implements B {public Integer get() {//code here,and return a Integer type value。return null;}}

上一篇 自动配料称量系统有哪些功能特点

下一篇 "千门万户曈曈日"的"曈曈日"是什么意思