Can someone tell me what this strange syntax is ? I tried to google it but could not get the correct hit.
Rating( movieName, rate: 5);
It looks like some kind of json syntax. what does "rate: 5" do ? Thanks
Can someone tell me what this strange syntax is ? I tried to google it but could not get the correct hit.
Rating( movieName, rate: 5);
It looks like some kind of json syntax. what does "rate: 5" do ? Thanks
The real syntax, eventually parsed by the compiler, is:
new Rating("1234", 4);
The string you see preceding the parameter are just type hint from your IDE.