继承的语法

class 子类名 extends 父类名
{
……
}

原文地址:https://www.cnblogs.com/lkwkk/p/14159463.html