Skip to content

(Lesson 3) Array instantiation / initializing confusion... #723

Answered by alymurtazamemon
Brentably asked this question in Q&A
Discussion options

You must be logged in to vote

@Brentably

  1. When you specify the import statement it means we can use that contract inside that contract. It is called importing a contract.
  2. NewSolution[] public storageArray; This is the declaration of an array variable that type is of that contract (in this case).
  3. NewSolution storageSolution = new NewSolution(); This is called the initialization of a contract and the whole line is called an object.

Hope it clears your questions.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by alymurtazamemon
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