Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

constructor destructor code c++

Line::Line( double len): length(len) {
   cout << "Object is being created, length = " << len << endl;
}
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #constructor #destructor #code
ADD COMMENT
Topic
Name
8+6 =