I am trying to understand the syntax of C c = new C();
I read the new keyword deploys, initializes state variables, runs the constructor, sets nonce to one, and returns address of new instance.
I read that a state variable a has a 0-ary public getter function a() that returns the value of a.
Questions:
- What "is" the getter function of a contract?
- Why does
newact on the getter function? - In
C c = new C();why do we need the firstCto define the variable?