1# Classes cannot be specified in ``implements`` clause 2 3Rule ``arkts-implements-only-iface`` 4 5**Severity: error** 6 7ArkTS does not allow to specify a class in implements clause. Only interfaces 8may be specified. 9 10 11## TypeScript 12 13 14``` 15 16 class C { 17 foo() {} 18 } 19 20 class C1 implements C { 21 foo() {} 22 } 23 24``` 25 26## ArkTS 27 28 29``` 30 31 interface C { 32 foo(): void 33 } 34 35 class C1 implements C { 36 foo() {} 37 } 38 39``` 40 41 42