public abstract class A implements B不太理解

学习 时间:2026-04-07 16:51:45 阅读:1799
public abstract class A implements B不太理解implements B 的是什么意识?

最佳回答

精明的犀牛

唠叨的金鱼

2026-04-07 16:51:45

泛型技术,看完代码,你将知道很多。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-04-07 16:51:45

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

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

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