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.
Maybe like 3-5 I think im right
Answer:
i dont know sorry but answer above lol
Explanation:
Options:
A Infrastructure mode
B Ad hoc mode
C a wireless access point
D static IP addresses
E APIPA
Answer:
A. Infrastructure mode
C. a wireless access point
Explanation: A DHCP is a server that makes use of s standard protocol called dynamic host configuration protocol to automatically assign internet protocol (IP) addresses and other computer parameters to clients. It gives them the opportunity to effectively make use of other network services such as DNS( domain name system) and NTP(network time protocol).