Unexpected Identifier In class body error

Bro, you’re my savior.
Even ChatGPT4.o failed