Answer:
hybrid topology
Explanation:
The type of topology that is being described is known as a hybrid topology. Like mentioned in the question this is an integration of two or more different topologies to form a resultant topology which would share the many advantages and disadvantages of all the underlying basic topologies that it is made up of. This can be seen illustrated by the picture attached below.
The answer is None of the above
Answer:
The program compiles y runs fine
Explanation:
Remember the following:
1. the reserved word “null” indicates that a variable that refers to an object is “without object”,
2. The variable has been declared but does not point to any object.
3. This may be because it was not initialized by assigning an object through the new instruction,
4. or that by mistake the reference contained in the variable has been deleted.
The solution is that it was applied to avoid the error is:
• It is not enough that there is a declaration of the variable
• The variable will be initialized.
Answer:
Explanation:
There is nothing wrong with the code it is complete. The Employee class is correctly extending to the Person class. Therefore, the Employee class is a subclass of Person and Person is the parent class of Employee. The only thing wrong with this code is the faulty structure such as the missing whitespace and indexing which is crucial in Python. This would be the correct format. You can see the output in the picture attached below.
class Person :
def __init__(self, first, last) :
self.firstname = first
self.lastname = last
def Name(self) :
return self.firstname + " " + self.lastname
class Employee(Person) :
def __init__(self, first, last, staffnum) :
Person.__init__(self,first, last)
self.staffnumber = staffnum
def GetEmployee(self) :
return self.Name() + ", " + self.staffnumber
x = Person("Sammy", "Student")
y = Employee("Penny", "Peters", "805")
print(x.Name())
print(y.GetEmployee())