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;
}
Just try to answer some questions as well, then you can keep a nice balance.
ps. Only answer the questions you know.
Answer:
Question is incomplete. it needs a topology diagram and also it needs Router R1 table. I assume User has access to the topology and Routing table.
Below Configuration will help to fix ACL problem
Hosts from the 172.16.0.0/16 network should have full access to Server1, Server2 and Server3 but this is not currently the case, as L1 can’t communicate to Server2 or Server3.
Explanation:
Following Configuration on Cisco Router R1 will help to fix all the ACL problems.
enable
configure terminal
no ip access-list standard FROM_10
ip access-list standard FROM_10
deny host 10.0.0.2
permit any
exit
!
no ip access-list standard FROM_172
ip access-list standard FROM_172
permit host 172.16.0.2
exit
!
interface GigabitEthernet0/0
ip access-group FROM_192 out
end
write memory
!