The second image is the one without curly braces, and it marks that area with a red line.
The first image has curly braces inserted in it, and the line disappeared. Why was there a need to add curly braces?
I tried without the curly braces as shown in the tutorial, but it showed error.
2
Answers
you are missing a semi colon after the constructor, a curly brace is not required before the override annotation.