Define a class named ID with a protected data member:
- number: type int pointer (dynamic variable) with a requirement of being a 10-digit integer.
Include appropriate accessor and mutator functions, a default constructor, and a one-argument constructor.
Overload the insertion operator (<<) to output ID objects.
Overload the extraction operator (>>) to input ID objects.
Add the big three to the ID class. Please indicate the call of the big three.
Use the following main() function to test your class:
int main(){
ID a(12345678);
cout << a;
cout << a;
cout << a;
ID b = a;
cout << b;
ID c;
cin >> c;
cout << c;
return 0;
}