Answer:
// C++ program to demonstrate inheritance
#include <iostream>
using namespace std;
// base class
class Animal {
public:
void eat() {
cout << "I can eat!" << endl;
}
void sleep() {
cout << "I can sleep!" << endl;
}
};
// derived class
class Dog : public Animal {
public:
void bark() {
cout << "I can bark! Woof woof!!" << endl;
}
};
int main() {
// Create object of the Dog class
Dog dog1;
// Calling members of the base class
dog1.eat();
dog1.sleep();
// Calling member of the derived class
dog1.bark();
return 0;
}
Answer: all the answers are correct
Explanation:
Partial mesh networks is simply a packet switching networks which is connected and require that there should be establishment of a circuit before the exchange of packets.
Partial mesh networks are less expensive to implement when they're being compared to the full mesh networks and are also less redundant.
The correct statements regarding partial mesh networks are:
•the number of links connecting nodes in a partial mesh network depends upon the availability and reliability requirements of the network
• switches play an integral role in a partial mesh network, where several paths through the network are available
• redundant links and switches are used to improve the availability and reliability of partial mesh networks
Answer:
Enter a number: 7
Enter a number: 10
Traceback (most recent call last):
File "main.py", line 3, in <module>
print (numi + num2)
NameError: name 'numi' is not defined
Explanation:
The typo in the print statement causes a run-time error, where obviously num1+num2 was expected, and an output of 17.
Rubbing two sticks together will cause friction
<span>Server virtualization in windows server 2012 r2 is based on a module called the</span> hypervisor.