class Date {
Date(int day, int month, int year) {
}
}
int main() {
Date d = Date(100, 2, 1990);
}
Here value(100) passed to day is not right, My question is how 'day' parameter can be checked in constructor to prevent creation of object