Why did you include header #include <fstream>? Where is it used?
You defined data member type as char ( char type; ) howerver getter ( int getType() const; ) returns int.
In the class you declare function setCountry without parameters ( void setCountry(); ) but define it
with a parameter (void PhoneNumber::setCountry(int ccode) ).
Your class has only the default constructor but you called constructors with parameters: