You probably need an extra constant in bars
const char* const Foo::bars[3] = { "a", "b", "c" };
As you declared it, you can do what you need when setting up the members one at a time, although you must use the init function to do this.
If you want it to be const, which is probably preferable, it will subsequently become illegal to assign them a string at a time, even in some kind of โinitโ method, and you should just use the code layout to make it clearer what you are doing .
source share