current position:Home>Calling parent contract with different visibility from contract

Calling parent contract with different visibility from contract

2022-02-04 00:06:11 Q & A of Denglian community

contract Pa {function a() internal  virtual {}}contract Child is Pa {    function a() public override {        super.a();    }}

That's about it , But the report is wrong

TypeError: Overriding function visibility differs.````





Other answers 1:

copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.
https://en.netfreeman.com/2022/02/202202040006096447.html

Random recommended