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.
Answer:
Automatic and Explicit Buffering.
In the case of explicit buffering, the length of the queue is provided while in automatic buffering the queue size needs to be indefinite. In automatic buffering there is no need to block the sender while coping the message. While in explicit buffering the sender is blocked for the space in queue.
No memory is being wasted in explicit buffering.
Send by Copy and Send by Reference.
By using the send by copy method, the receiver is not able to change the state of parameter while send by reference allow. The advantage of using the send by reference method is that it allows to change a centralized application to its distributed version.
Fixed-sized and Variable-sized Messages.
In fixed size messaging refers, the buffer size is fixed. This means only a particular number of messages can only be supported by the fixed size buffer. The drawback of the fixed size messages is that they must be a part of fixed size buffer. These are not a part of variable size buffer. The advantage of variable size message is that the length of the message is variable means not fixed. The buffer length is unknown. The shared memory is being used by the variable size messages.
Explanation:
Memorex should: iv. record a refund liability in the year of the sale.
<h3>What is a right-of-return privilege?</h3>
A right-of-return privilege can be defined as a special right, advantage or entitlement that is accorded to a customer, which avails them an opportunity to return a product they have purchased.
Since Memorex Disks offers its customers right-of-return privileges, it is expected that it should record a refund liability in the year of the sale i.e recording an allowance for sales returns in the year the sale was made.
Read more on right-of-return privilege here: brainly.com/question/17165436
#SPJ1
Answer:
B. Virtual reality
Explanation:
In a virtual reality context, the visual and auditory senses of the user are fed by data (images, sounds) from the computer using a goggle and earphones. That allows the person to be totally cut off her real physical environment and be totally immersed into the world (reality) managed by the computer.
Not to be confused with<u> augmented reality</u>, where the physical reality and perception of it aren't changed... but an additional layer of information is added on top of it. Like pointing your phone camera to a building and getting information about the building displayed on your phone.
The <u>subject </u>line for any e-mail messages you write should clearly state the intention of the e-mail.
Electronic mail (e-mail) is a method of digital communications in which messages are exchanged through the internet. The messages are sent from a sender to one or more receivers. Depending on user’s perspective, every user uses e-mail differently. Communicating via e-mail requires e-mail platforms such as G*mail, Ya*hoo! Mail, Hot*mail, and Out*look etc. In the every e-mail, there is a subject line that clearly state the intention of the e-mail.
Subject line is an important element of an e-mail. Through the subject line, the message written in the e-mail is briefly summarized in six to eight words. A clearly written subject line provides the recipient a clear understanding that why the email has been sent. When recipient replies back to the e-mail, the subject line is changed accordingly.
This is the subject line of the e-mail that convince the receiver whether to open and read the e-mail. So, it should be written in the way that gives clear intention of the e-mail. We can say that the subject line of the e-mail is the most significant few words in the whole e-mail to convey the main purpose of the e-mail.
You can learn more about subject line at
brainly.com/question/14572730
#SPJ4