📜  子类方法可以推断其超类方法的异常 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:21.646000             🧑  作者: Mango

代码示例2
Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
If the superclass method declares an exception, subclass overridden method can declare same, subclass exception or no exception but cannot declare parent exception.