Contracts

What is it

Contracts can be assimilated to class in oriented-object programming. They define a template for the initial state (variables) and implementation of behaviours (functions).

Conventions

For usability, Solidity decided to use CamelCase for its naming convention. Therefore, all words in a contract name should be capitalised. SpacecryptFactory is right while both spacecryptFactory and Spacecrypt_Factory are not.

Exercise
Correct!
False!

Loading...

Declare a contract named `SpacecryptFactory`
pragma solidity ^0.4.21; // Every big success starts small. Yours starts here

results matching ""

    No results matching ""