Each officer created by this article before entering upon his duties shall take an oath or affirmation to support the constitution of the United States and of this state and to discharge faithfully the duties of his office to the best of his judgment and ability.