Is it possible to avoid repeating the class name in the implementation file?

I’m guessing this is to avoid lots of “unnecessary typing”. Sadly there’s no way to get rid of the scope (as many other answers have told you) however what I do personally is get the class defined with all my function prototypes in nice rows, then copy/paste into the implementation file then ctrl-c your ClassName:: on the clip board and run up the line with ctrl-v.

Leave a Comment