// Inherited methods cannot be overloaded class Main extends Other { void main() {} void method(int a) {} } class Other { void method() {} }