当父类方法为final时,子类无法覆盖此方法

来源:互联网 发布:用linux查看版本 编辑:程序博客网 时间:2024/06/06 02:23
//当父类方法为final时,子类无法覆盖此方法
protected final void onDraw(Canvas canvas) {

if(thread == null){
thread = new MyThread();
thread.start();
}else{
drawSub(canvas);
}
0 0
原创粉丝点击