Where is the error?

```
class B
{
public:
B(int i): x(i) {}
// . . .
private:
int x;
};
class D : public B
{
public:
D() { /* . . . */ }
private:
// . . .
};
int main()
{
D y;
return 0;
}
```


There is no default base class constructor for the compiler to call at the definition of
the derived class destructor. One compiler is a bit more generic. It complains that
there is no “appropriate” constructor to call at this point.

Computer Science & Information Technology

You might also like to view...

What is the purpose of a “Hello” packet?

a. It is used to partition a large network into smaller networks. b. It verifies that the link between two routers is active and the routers are communicating. c. It enables VLSM. d. It is assigned to a protocol or route to declare its reliability.

Computer Science & Information Technology

In the accompanying figureofa Microsoft Access 2016 document, which of the following is Box 1 pointing to?? ?

A. Encrypted Key button? B. ?Foreign Key button C. ?Primary Key button D. ?Concatenated Key button

Computer Science & Information Technology

The default theme for Word is named ________

A) Windows B) Original C) Normal D) Office

Computer Science & Information Technology

All Excel charts have a minimum of three background elements

Indicate whether the statement is true or false

Computer Science & Information Technology