Answer:
This implies that software firms
can develop upgrades with a lower cost and less risk than they can develop a new product.
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())
Answer:
public class GetInfo{
Beverage[] beverages=new Beverage[100];
int i=0;
GetInfo(Beverage b){
beverages[i]=b;
i++;
}
public void Display(){
for(int i=0;i<beverages.length;i++)
cout<<beverage[i].tostring();
}
Explanation:
we are taking Beverages array to store all values and in constructor we are adding that to the list and Display() function prints the vale
It is called vulnerabilities