Answer to Question #5563 in C++ for Jimmy

Question #5563
give an example of construction and destruction
1
Expert's answer
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS