Answer:
Following are the code to this question:
CarCounter::~CarCounter()//Defining destructor CarCounter
{
cout << "Destroying CarCounter\n";//print message Destroying CarCounter
}
Explanation:
Following are the full program to this question:
#include <iostream>//Defining header file
using namespace std;
class CarCounter //Defining class CarCounter
{
public:
CarCounter();//Defining constructor CarCounter
~CarCounter();//Defining destructor CarCounter
private:
int carCount;//Defining integer variable carCount
};
CarCounter::CarCounter()//declaring constructor
{
carCount = 0;//assign value in carCount variable
return;//using return keyword
}
CarCounter::~CarCounter()//Defining destructor CarCounter
{
cout << "Destroying CarCounter\n";//print message Destroying CarCounter
}
int main() //Defining main method
{
CarCounter* parkingLot = new CarCounter();//Defining class object parkingLot
delete parkingLot;//
return 0;
}
- In the given C++ language code, a class "CarCounter" is defined, and inside the class, a "constructor, Destructors, and an integer variable" is defined.
- Outside the class, the scope resolution operator is used to define the constructor and assign value "0" in the integer variable.
- In the above-given code, the scope resolution operator, to define destructor and inside this cout function is used, which prints a message.
- In the main method, the class object is created, which automatically calls its class constructor and destructors.
For 90% of users, the word processing capabilities of Google Docs is more than enough. But for some, Microsoft Word's advanced features will be important. ... You also get far more powerful templates, which could speed up your work, depending on what you use Word for.
<span>An ftp server is a computer that allows users to upload and/or download files using ftp.</span>
Answer:
D
Explanation:
because it is a sequence it does more than one thing
The engineer will need to set the distance to 130 for the static link so that it becomes a floating static route.
<h3>What is Floating static routes?</h3>
This is known to be a static routes that is said to have a kind of administrative distance that is also known to be bigger than the administrative distance of any other static route or dynamic routes.
Note that the value 130 stands for the next most logical value, nd as such it is to know that the right route comes first in the steps for administrative distance.
Learn more about WAN from
brainly.com/question/11352260