如何在子类中创建父类没有的属性和方法,并且调用方法并且输出(有隐藏有返回值)
直接继承,编写这些方法,比如class B : extends A{public int 某个方法() { return 0; }}调用B b = new B();b.某个方法();