operator + method

ShowType operator +(
  1. ShowType others
)

Implementation

ShowType operator +(ShowType others) {
  typesList.addAll(others.typesList);
  return ShowType(typesList);
}