answersLogoWhite

0

A more pertinent question is why would you need to? The destructor exists purely to clean up any memory allocated to the class instance variables. If the destructor requires a "parameter" to do so, then there's a clear design flaw in the class. The class is perfectly capable of cleaning up its own instance variables without any need for a parameter.

User Avatar

Wiki User

13y ago

What else can I help you with?

Continue Learning about Engineering
Related Questions

What is a sentence for formal?

You do not pass the formal arguments to the function like that. (in context with programming)You need to write a formal letter.


How do you pass the parameter in applet?

If you have the function main()... You can use its arguments to pass information.


How do you pass command line arguments using turbo in c compiler?

In the Options menu the Arguments command.


Why would you use Arguments and Parameters?

Arguments and parameters are used in programming to pass data to functions, enabling them to perform operations based on that data. Parameters act as placeholders in function definitions, while arguments are the actual values provided when the function is called. This allows for greater flexibility and reusability of code, as the same function can be executed with different inputs to produce varying outcomes. Additionally, using arguments and parameters helps improve code readability and organization.


Elements of assembly language programming What is A simple assembly scheme pass structure of assembler design of two pass assemblers a single pass assemblers what is macros?

what are the elements of assembly language programming?


How will you pass arguments to a function in c plus plus?

If you have this function: int add(int x, int y) { return x + y; } you would pass the arguments when calling the function in the () like this: add(4, 7); 4 & 7 would be the arguments.


What is the least number of arguments you can pass to a Sub procedure?

anal sex


How can you pass run-time arguments in java?

Once you have compiled your Java source files: javac MyClass.java You can run the resulting class file and pass arguments: java MyClass arg0 arg1 arg2


How many arguments pass in function?

zero or more it can be fixed or variable (printf is an example)


What cannot pass through an opaque material?

Light cannot pass through an opaque material.


Why you pass arguments to function in c plus plus?

You pass arguments to functions because that is how you tell the function what you want it to do. If you had, for instance, a function that calculated the square root of something, you would pass that something as an argument, such as a = sqrt (b). In this case sqrt is the function name, b is passed as its argument, and the return value is assigned to a.


Can you pass argument to procedures?

Yes. Procedures are otherwise known as functions, and functions can accept arguments.