public WordAdapter(Context context, ArrayList<Word> words)
{
super(context, 0, words);
}
为什么super会出现在括号中?
答案 0 :(得分:2)
因为它在超类中调用特定的构造函数。将Context, int, ArrayList<Word>
作为参数的一个。如果没有明确的super
或this
作为第一行(任何构造函数),那么隐式空调用{{1 已添加。