sajty/ember — comment on commit 8d3a18082139e02ee7d250ec949b9d4961be9ee6
File: doc/template_header.h line 144
By erikhjortsberg:

I think you're reading too much into these examples. :)
They are only meant to demonstrate the way the code should be formatted and how naming works.
The "virtual" keyword probably came with a copy-paste operation or something similar.

But you are right; a getter or setter method should in general never be virtual; if there is need for a way to allow for subclasses to hook into it, a protected virtual "onNameChanged" method should be added (and called from setName).