Answer:
see explaination for program code
Explanation:
interface Runner
{
public abstract void run();
}
class Machine implements Runner
{
public void run()
{
System.out.println("Machine is running");
}
}
class Athlete implements Runner
{
public void run()
{
System.out.println("Athlete is running");
}
}
class PoliticalCandidate implements Runner
{
public void run()
{
System.out.println("Political Candidate is running");
}
}
class DemoRunners
{
public static void main (String[] args)
{
Machine m = new Machine();
m.run();
Athlete a = new Athlete();
a.run();
PoliticalCandidate pc = new PoliticalCandidate();
pc.run();
}
}
Answer:
a set of instructions that can be run multiple times throughout a program
Explanation:
Individual or other words user and attackers