Describe how a pure virtual function (the prototype) is written.

What will be an ideal response?


The prototype for a pure virtual function is written by making use of an assigned zero, like this:
```
class Base
{
public:
virtual return_type FunctionName() = 0;
// the = 0; means virtual
};

Such as:
class Animal
{
public:
virtual float HowMuchDoIWeigh() = 0;
// the = 0; means virtual
};
```

Computer Science & Information Technology

You might also like to view...

What does the size value represent in an array declaration statement?

What will be an ideal response?

Computer Science & Information Technology

Interactions are how others are interacting with you, via retweets, replies, and mentions, and new ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

You can improve the readability of a document by inserting the ________ hyphens in a phone number

Fill in the blank(s) with correct word

Computer Science & Information Technology

The Liquify command is available in the Edit menu.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology