compiler-design-eth/javali_tests/HW3_nop90/InheritanceTests/ErrorOverloadInheritedMethod.javali

11 lines
146 B
Text
Raw Normal View History

2020-01-15 22:32:25 +01:00
// Inherited methods cannot be overloaded
class Main extends Other {
void main() {}
void method(int a) {}
}
class Other {
void method() {}
}