Skip to content

Lesson 2 Question #1475

Answered by cromewar
Grvtian asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @Grvtian
For convention the names starting with upper case like Simple Storage is for declaring superior data types or classes (contracts) and when you use the same name with lower case you usually are referring to a implementation of that data type.

For example you have the contract:

contract SimpleStorage{}

then when you import the contract and use something like:

simpleStorage = new SimpleStorage()

simpleStorage is the name of the new variable/implementation of that contract.
SimpleStorage() is just the reference to that data type.

I hope this info might help.

Note: you will see this more often when using python since lesson 4 ;)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cromewar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants