Question: / / main . cpp #include #include Point.h using namespace std; int main ( ) { / / creating point class pointer object pt
maincpp
#include
#include "Point.h
using namespace std;
int main
creating point class pointer object pt with coordinates and label to origin
Point pt new Pointorigin;
calling descriptor function using pt and printing the returned string
cout ptdescriptor endl;
calling function to update coordinates to
ptupdateCoords;
calling function to update label to pt
ptupdateLabelpt;
calling descriptor function using pt and printing the returned string
cout ptdescriptor;
return ;
pointh
#ifndef POINTH
#define POINTH
#include
using namespace std;
class Point
public:
int x ;
int y ;
string label ;
Pointconst string& label, const int x const int y;
void updateCoordsconst int x const int y;
void updateLabelconst string& label;
string descriptor const;
;
#endif
pointercpp
File: point.cpp
#include "point.h
#include
#include
using namespace std;
Type your code here.
Type your code here.
Type your code here.
Type your code here.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
