Right code but showing error

Capture

it is right code but showing error please help me

Your area method needs to be indented under the class.
Mark rows 4 and 5 together then press TAB.
indent

2 Likes

thamk you it is very helpfull