how to use constructor in a class 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;
}