Answer to Question #5563 in C++ for Jimmy
give an example of construction and destruction
1
2011-12-09T11:07:15-0500
class myclass {
int val;
public:
myclass(int i) {
val=i;
cout<<"construction"<<endl;
}
~myclass()
cout<<"destruction"<<endl;
}
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
C++
Comments
Leave a comment