Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 846 Bytes

Overriding Changes.md

File metadata and controls

24 lines (21 loc) · 846 Bytes

x# 107 - Overriding Changes Function Overriding Changes: The overriding function may only change the visibility of the overridden function from external to public.

The mutability may be changed to a more strict one following the order:

  • nonpayable can be overridden by view and pure.
  • view can be overridden by pure.
  • payable is an exception and cannot be changed to any other mutability.

Slide Screenshot

107.jpg


Slide Text

  • Function Overriding virtual -> override
  • Visibility: external -> public
  • non payable -> view/pure
  • view -> pure
  • payable X -> Any

References


Tags