title: Can a C++ enum class have methods?
body: <p>I have an enum class with two values, and I want to create a method which receives a value
  and returns the other one. I also want to maintain type safety(that's why I use enum class instead of enums).</p>
  
  <p><a href="http://www.cplusplus.com/doc/tutorial/other_data_types/" rel="noreferrer">http://www.cplusplus.com/doc/tutorial/other_data_types/</a> doesn't mention anything about methods
  However, I was under the impression that any type of class can have methods.  </p>