Answer:
Both if-then and switch is the decision control structure that enables the program to execute a statement or block of codes
Explanation:
This decision control structure always checks for one or more condition and execute true statement “if the condition is true” otherwise it will execute false statement (if present). The “true statement” is compulsory.
In case of “if-then loop”, it executes the true block only if the Boolean expression is true. In a similar way in switch-case, the same happens and instead of else part there will be a “default” statement which is compulsory to be present and it will get executed.
Answer:
the answer is environmental
Answer: Inheritance
Explanation enables a new object to be defined in object oriented programming so that it inherits the attributes that were previously defined in another object (called the parent object).
A class defines an object in terms of its attributes (properties), and methods that are used to operate on the object.
Example:
An object defined as "human being" may have defined to have attributes that are common to all human beings such as gender, age, height, and intelligence quotient.
Methods for this object may include "eats nutritional meals", "drinks moderately", "is married", and so on.
Another object could be defined as "a cancer patient" who inherits the properties of a "human being" as well as the methods that apply to a "human being". However, the new object has additional attributes such as "is prone to infection", "needs chemotherapy", and so on. It may also define new methods that describe how the disease is being treated.
<span>Software that covertly monitors and records pieces of information such as web surfing activities is referred to as </span>spyware.