如何扩展多个类 [英] how to extends more than one class
本文介绍了如何扩展多个类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道我们不能扩展多个课程。但是我想在我的android活动中扩展两个以上的类。
怎么办呢?
I know we can't extends more than one class. But I want to extends the more than two classes in my android activity.
How can it done?
推荐答案
你知道吗,你不能去做。但是有一些解决方法。例如,请参阅此Stack Overflow问题:我如何实现多个Java中的继承 [ ^ ]。
You know, you cannot do that. There are workarounds, though. See, for instance, this Stack Overflow question: "How do I implement multiple inheritence in Java"[^].
这篇关于如何扩展多个类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文