Initializer List

class Point {
    int x;
    int y;
    Point(int i = 0, int j = 0):x(i), y(j) {}

enum Class

 enum class Color { red, green, blue }; // enum class
 enum Animal { dog, cat, bird, human }; // plain enum 
  • enum classes - enumerator names are local to the enum and their values do not implicitly convert to other types (like another enum or int)
  • Plain enums - where enumerator names are in the same scope as the enum and their values implicitly convert to integers and other types