Write a program that take and return object in C++
Answers
Answered by
3
Explanation:
y = y + p. y; return temp; } void display() { cout<<"x = "<< x <<"\n"; cout<<"y = "<< y <<"\n"; } }; In the function main(), 3 objects of class Point are created. First values of p1 and p2 are displayed.
I think...
Similar questions
English,
1 month ago
English,
1 month ago
Math,
2 months ago
Environmental Sciences,
2 months ago
Math,
9 months ago