1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
nekit [7.7K]
3 years ago
7

What is the purpose of a destructor? (g) What is the purpose of an accessor?

Computers and Technology
1 answer:
Shkiper50 [21]3 years ago
7 0

Answer:

Destructor:-To free the resources when lifetime of an object ends.

Accessor:-To access private properties of the class.

Explanation:

The purpose of a destructor is to free the resources of the object that it has acquired during it's lifetime. A destructor is called once in the lifetime of the object that is also when  the ifetime of the object ends.

The purpose of the accessors is to access private properties of the class.Accessor cannot change the value of the private members.They are also called getters.

You might be interested in
Write a function named intro that takes a string as input.
Pani-rosa [81]

Answer:

View Image

Explanation:

Import <em>string.h</em> to use <em>strcat()</em>.

Create a buffer to store user input and the returned string value.

You need to return a string so the function must be a pointer of type char.

You need to use the function <em>strcat()</em> to concatenate the two strings together. It's not easy as python where you can just add strings together.

6 0
3 years ago
Do you believe that OOP should be phased out and we should start working on some alternative(s)?
katen-ka-za [31]

Answer:

The answer to this question can be defined as below:

Explanation:

There are many new directions for solutions for any given problem in today's computer age, in which the "OOP's" is one of the philosophies of preference.  

  • If the issue for each of the several cases can be degraded in various classes, that reveal complex relationships.  
  • In this process the OO analysis is acceptable with other concepts, these issues usually produce difficult outcomes, that's why I don't believe in this modeling.
5 0
3 years ago
Describe the advantages of using a template
Mariulka [41]
Ooh, ooh, ooh I know this one!

One advantage is that you don't have to make the entire layout of what you are doing from scratch. It is also time saving by not making you write everything.
6 0
3 years ago
Dash+dash=100<br>Both dash and dashare prime numbers.<br>How many different solutions can you find​
ioda

Answer:

6

Explanation:

97+3 = 100

89+11 = 100

83+17 = 100

71+29 = 100

59+41 = 100

53+47 = 100

I counted them using excel, see pic.

5 0
3 years ago
I need help with my homework
lukranit [14]

Answer:

C is not equal to the other two.

Explanation:

A = 35

B = 35

C is actually equal to 36.

8 0
2 years ago
Other questions:
  • The force of impact is____.
    8·2 answers
  • Select the components of a search engine.
    13·2 answers
  • Which invention provided instant communication and information to a massive audience for the first time?
    9·2 answers
  • What does an executable file contain? Program instructions written in source code. Program instructions that have been compiled
    15·1 answer
  • How do you represent the decimal integer 50 in binary?
    14·1 answer
  • The length of the hypotenuse of a right-angled triangle is the square root of the sum of the squares of the other two sides. Wri
    7·1 answer
  • Assume the following:
    10·1 answer
  • Which of the examples is part of client-side code?
    12·1 answer
  • Without net neutrality, which of these situations might occur? (Select all that apply.) a cable company might charge different b
    5·1 answer
  • :|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!