Which of the following is the cause for an object being out of scope? (1) the function ends (2) the program ends (3) a block containing local variables ends (4) a delete operator is called code example
Example: c++ clas deconstructor
class Line {
public:
Line(); // This is the constructor declaration
~Line(); // This is the destructor: declaration
};