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
Hindi,
15 days ago
Biology,
15 days ago
Math,
1 month ago
Environmental Sciences,
1 month ago
Math,
8 months ago