我在一个index.ts中调用了父类的init方法,这里面调用了父类presenter文件的drawAll方法,会获取到一个数组并添加到public的变量上面,之后调用子类presenter的drawAll,但是这时候子类里面用this指向那个变量显示的是空的,我是用super的话会提示Only public and protected methods of the base class are accessible via the 'super' keyword.
,可是我父类定义那个变量的时候不管是用public还是protected都会提示这个,我想问问这个该怎么写啊。