#include class Date { public: void display() { cout << month << '/' << day << '/' << year; } private: unsigned month, day, year; }; main() { //unsigned a=12, b=13, c=1992; //Date foo = {b, a, c}; initializers in {} must be constants Date foo = {3, 2, 1992}; // can not access private members }