menu
Qamnty
Login
Register
My account
Edit my Profile
Private messages
My favorites
Assume the existence of a class named window with functions named close and freeresources, both of which accept no parameters and return no value . write a destructor for the cl…
Ask a Question
Questions
Unanswered
Tags
Ask a Question
Assume the existence of a class named window with functions named close and freeresources, both of which accept no parameters and return no value . write a destructor for the cl…
asked
Sep 22, 2018
185k
views
1
vote
Assume the existence of a class named window with functions named close and freeresources, both of which accept no parameters and return no value . write a destructor for the class that invokes close followed by freeresources.
Computers & Tech
high-school
Md Mahfuzur Rahman
asked
by
Md Mahfuzur Rahman
8.0k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
5
votes
In your question whereas there is a class named window and it would be like this:
class window {
//code here
}
Next is there is a function called close and freeresource and it goes like this:
class window{
function close( ){
//code here
}
function freeresource( ){
// code here
}
public destruct (){
this.close();
this.freeresource();
}
}
The last code function destruct invokes the function close and freeresource. Hope this would help
Amar Premsaran Patel
answered
Sep 29, 2018
by
Amar Premsaran Patel
8.0k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Jul 7, 2024
215k
views
You cannot provide parameters to a destructor; it must have an empty parameter list. True or False
Paul Van Dyk
asked
Jul 7, 2024
by
Paul Van Dyk
8.6k
points
Computers & Tech
high-school
1
answer
3
votes
215k
views
asked
Apr 4, 2024
152k
views
A destructor function can have zero to many parameters. A) True B) False
Tim Foley
asked
Apr 4, 2024
by
Tim Foley
8.9k
points
Computers & Tech
high-school
1
answer
4
votes
152k
views
asked
Jan 13, 2022
44.6k
views
The stub: transmits the message to the server where the server side stub receives the message and invokes procedure on the server side. locates the connection on the computer. packs the parameters into
Isar
asked
Jan 13, 2022
by
Isar
8.7k
points
Computers & Tech
college
1
answer
14
votes
44.6k
views
Ask a Question
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.
Categories
All categories
Mathematics
(3.7m)
History
(955k)
English
(903k)
Biology
(716k)
Chemistry
(440k)
Physics
(405k)
Social Studies
(564k)
Advanced Placement
(27.5k)
SAT
(19.1k)
Geography
(146k)
Health
(283k)
Arts
(107k)
Business
(468k)
Computers & Tech
(195k)
French
(33.9k)
German
(4.9k)
Spanish
(174k)
Medicine
(125k)
Law
(53.4k)
Engineering
(74.2k)
Other Questions
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
Seven basic internal components found in a computer tower
Disadvantages of using animation in advertising? advantages and disadvantages of using animation for education? advantages and disadvantages of using animation in entertainment?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qamnty