error: 'setChar' was not declared in this scope

Because those are classes, not functions. Classes can have multiple methods with varying arguments.