flâneur — a map of the web's best reading

Inheritance | Solidity by Example | 0.8.13

solidity-by-example.org · 877 words · saved by 1 readers

Solidity supports multiple inheritance. Contracts can inherit other contract by using the is keyword. Function that is going to be overridden by a child contract must be declared as virtual. Function that is going to override a parent function must use the keyword override. Order of inheritance is important. You have to list the parent contracts in the order from “most base-like” to “most derived”.

setState(...): takes an object of state variables to update or a function which returns an object of state variables. ). If you meant to render a collection of children, use an array instead. mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChang

Explore this link on the map →

saved by

related reading