Solidity Tutorial: all about Structs

Jean Cvllr
7 min readAug 1, 2019

Structs are a way to define new custom types in Solidity. The Solidity documentation define them as “objects with no functionalities”, however, they are more than that.

Like in C, structs in Solidity are a collection of variables (that can be of different types) under a single name.

This enable you to group many variables of multiple types into one user defined type.

--

--