Class Item {
// item class attributes
string itemName;
int itemQuantity;
double itemPrice;
...
}
class grocerylist {
// you can use arrays or any other containers like ArrayList, Vectors,...etc depends on programming language you use
Item[50] itemList;
int size;
public grocerylist () {
this.size = 0;
}
public void addItem(Item i) {
itemList[size] = i;
size = size +1; // Or size++
}
}
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
!
Answer: (A) At least one type is parameterized
Explanation:
A template class is the type of class in which the one type are parameterized atleast in each template class. The template class mainly provide the various type of specifications so that it can generate the class based on the different types of parameters.
A template class is basically initialized by passing the template argument in the given types. In this type of class atleast one type is defined as the generic type.
Therefore, Option (A) is correct.
Answer:
mouse cannot be shared on network