public abstract class A implements B不太理解

学习 时间:2026-11-30 10:58:40 阅读:2167
public abstract class A implements B不太理解implements B 的是什么意识?

最佳回答

凶狠的花生

醉熏的眼睛

2026-11-30 10:58:40

泛型技术,看完代码,你将知道很多。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-11-30 10:58:40

    泛型技术,看完代码,你将知道很多。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;}}

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

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