2

Do contracts have to implement the methods they inherit from interfaces, likewise, do they have to implement methods from abstract contracts?

1

Do they not, but they will not be deployable, because they themselves will be abstract. If not all methods are implemented solcjs for instance will generate an empty bytecode file and remix will not let you deploy the contract.

However, I believe, if compiler would be able to compile it partially, ignoring all unimplemented methods, you would be able to deploy the bytecode, but it would most probably produce runtime errors.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.