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
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.
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)
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
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)