Show the output of the following code

```
#include
using namespace std;

class Parent
{
public:
Parent()
{
cout << "Parent’s no-arg constructor is invoked" << endl;
}

~Parent()
{
cout << "Parent’s destructor is invoked" << endl;
}
};

class Child: public Parent
{
public:
Child()
{
cout << "Child’s no-arg constructor is invoked" << endl;
}

~Child()
{
cout << "Child’s destructor is invoked" << endl;
}
};

int main()
{
Child c1;
Child c2;

return 0;
}
```


invoke f from Parent
invoke f from Parent
invoke f from Child
invoke f from Parent

Computer Science & Information Technology

You might also like to view...

A solid red circle can be drawn using a shape of type _______.

a) Ellipse b) Circle c) Oval d) All of the above.

Computer Science & Information Technology

There are over 50 possible columns of information available about placed files on the Links panel, ranging from Author to Transparency.

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

Computer Science & Information Technology

To ensure that the system resources of the computer and network are not overloaded, the program should use a database in ____ form.

A. bound B. connected C. disconnected D. unbound

Computer Science & Information Technology

A distributed denial of service (DDos) involves sending a continuous stream of server requests that ultimately overload a server's capacity to respond.

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

Computer Science & Information Technology