摘要:
输出: base base 谁能教教我,为什么这里输出的是base?虽然父类是私有方法,子类不能继承,但是,子类自己添加了一个callName方法。为什么不会去调用子类自己的callName方法呢? 如果改成: 输出: null sub 因为:父类构造器中调用了子类重写的callName方法。而此时 阅读全文
摘要:
Problem: Given a 2D board containing 'X' and 'O' (the letter O), capture all regions surrounded by 'X'. A region is captured by flipping all 'O's into 阅读全文