December 2018
Beginner to intermediate
564 pages
17h 34m
English
A struct is a composite data type that is declared under a logical group. Structs are used to define new types. It is not possible for a struct to contain a member of its own type, although a struct can be the value type of a mapping member. Here is an example of a struct:
struct Gotham {address Batcave;uint cars;uint batcomputer;uint enemies;string gordon;address twoface;}
Read now
Unlock full access