Data constructor c++ code example
Example: formats of constructor in c++
Line::Line( double len): length(len) {
cout << "Object is being created, length = " << len << endl;
}
Line::Line( double len): length(len) {
cout << "Object is being created, length = " << len << endl;
}